s4-lib/socket: Allocate a the larger sockaddr_un and not just a sockaddr_in in unixdo...
commite9ae36e9683372b86f1efbd29904722a33fea083
authorAndrew Bartlett <abartlet@samba.org>
Tue, 23 Jul 2013 22:19:26 +0000 (24 10:19 +1200)
committerJeremy Allison <jra@samba.org>
Tue, 23 Jul 2013 22:35:08 +0000 (23 15:35 -0700)
tree4ecfd2629930b6bcd44ce5fe2d05364c91c7bafe
parentfe06e1b0a3c06ffa859fa0d5e52ed4cc59de0950
s4-lib/socket: Allocate a the larger sockaddr_un and not just a sockaddr_in in unixdom_get_peer_addr()

This caused crashes in _tsocket_address_bsd_from_sockaddr() when we
read past the end of the allocation.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/lib/socket/socket_unix.c