socket_wrapper.c: make FIONREAD handling more robust in swrap_vioctl()
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Jun 2020 12:18:44 +0000 (14:18 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Jun 2020 20:59:00 +0000 (22:59 +0200)
commitc95b7cb1d7b9348472276edceff71889aa676d25
tree5686ce91a8deace8b394911640b3fa17f924ace0
parenta37c0175492fb1b35257b785c71dea4e4f6d4750
socket_wrapper.c: make FIONREAD handling more robust in swrap_vioctl()

We should only dereference the va args when the kernel already checked
they are valid.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897

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