s4-lib/socket: Allocate a the larger sockaddr_un and not just a sockaddr_in in unixdo...
commit85db68b26c7572e7ea7bc820d14045658803f188
authorAndrew Bartlett <abartlet@samba.org>
Tue, 23 Jul 2013 22:19:26 +0000 (24 10:19 +1200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Jul 2013 19:47:24 +0000 (29 21:47 +0200)
tree14501f8975e71e44da15f2db77e06b79afa1bee6
parent93d42071056980a9a438cfe4660154a6050226dc
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>
(cherry picked from commit e9ae36e9683372b86f1efbd29904722a33fea083)
source4/lib/socket/socket_unix.c