swrap: don't read the callers msg_control buffer in swrap_recvmsg_before_unix()
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Feb 2021 09:45:11 +0000 (10:45 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 10 Feb 2021 09:50:17 +0000 (10:50 +0100)
commitd610c8d5b32db5c3cc6e57b11d1d2e1505975832
tree2252f5e559b0dde33a7c4d83518cec3fbfdea5de
parentdb594f106d9737e0415a268439fc9003bb636473
swrap: don't read the callers msg_control buffer in swrap_recvmsg_before_unix()

For recvmsg() msg_control is a write only buffer, that is filled by the
kernel, but the kernel won't read from that buffer. So we shouldn't
read from (copy) it either.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/socket_wrapper.c