swrap: Fix recvmsg() with UDP
authorAndreas Schneider <asn@samba.org>
Tue, 27 Oct 2015 08:26:40 +0000 (09:26 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 27 Oct 2015 13:58:04 +0000 (14:58 +0100)
commitbe46c97142b9e79c45c8fdf078ac5245813738ba
treee9f0f059d1fcd2790351861beecc0770e9c50dd6
parent73b2b4f16b4b5f51d4e13fba7444844e13a9f7cc
swrap: Fix recvmsg() with UDP

This worked if the unix path was bigger than sizeof(struct sockaddr_in6).
With a short unix socket pathname the buffer was to small to store the
address and convert_un_in() failed.

Thanks to Grigorij Demidov <grigorii.demidov@nic.cz>

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