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>
Mon, 22 Jun 2020 14:45:42 +0000 (16:45 +0200)
commit64cee569a77e9d9d92e0dc0d2793536c9fb4a45e
tree1a3456c38769d3bba838f804fbc01dc2126b15c3
parent309103f464af19d6190f89de959c6dc41ba58c85
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>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit c95b7cb1d7b9348472276edceff71889aa676d25)
src/socket_wrapper.c