s4-lib/socket: Allocate a the larger sockaddr_un and not just a sockaddr_in in unixdo...
commit580b51cd4841230ddddad82a2d8168b8506ba04b
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:46:38 +0000 (29 21:46 +0200)
tree572f1130eb5490bdbaeed463c194916347f17843
parent4bbb4c8966ec9aefeee016c9549cd35db6adb8ac
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