tsocket_bsd: Always use a real length for the sa_socklen, and keep it around
authorAndrew Bartlett <abartlet@samba.org>
Wed, 7 Apr 2010 00:42:37 +0000 (10:42 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 May 2010 12:51:19 +0000 (14:51 +0200)
commit109e407554c55a602b0c184eb7eec2ed1833b68b
treef0b7b2e0b2ce814430e337e98e1823e517c8a25f
parente96605da78f1a0afbaf3b0aedaf7a4730d64d3a5
tsocket_bsd: Always use a real length for the sa_socklen, and keep it around

The previous code assumed the OS would happily accept sizeof(struct
sockaddr_storage).  It seems some versions of Solaris do not like
this.

Andrew Bartlett
(cherry picked from commit f1aa4c34bf0bd7d42627024af333963b741babea)

Fix for bug #7354.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tsocket/tsocket_bsd.c