swrap: Fix MSGHDR check in sendmsg()
authorAnoop C S <anoopcs@redhat.com>
Wed, 22 May 2019 05:15:37 +0000 (10:45 +0530)
committerAndreas Schneider <asn@samba.org>
Tue, 2 Feb 2021 09:23:33 +0000 (10:23 +0100)
commit00650ffb0b913010aab7a004fa2d3eadf2f2f007
treed1f27088f61e80a6a864e9ae387a68b29c18ff84
parent5b2a98203bbb0230785a65429338b52bd377971b
swrap: Fix MSGHDR check in sendmsg()

Check for msg_controllen and msg_control data members from msghdr
structure needs to be validated on the received omsg pointer rather
than on newly created msghdr struture inside the wrapper.

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/socket_wrapper.c