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>
Mon, 17 May 2010 07:50:19 +0000 (09:50 +0200)
commitfa773cde00d0bf24f78fee1ffc508b0f7c81bbd9
treee324f14b3e8f96b004f0964a3b377669d1950e76
parent82ee4a2c5a4ba969768156d8bbdfea56cd53a187
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>
(cherry picked from commit 109e407554c55a602b0c184eb7eec2ed1833b68b)
lib/tsocket/tsocket_bsd.c