tsocket/bsd: fix bug #7140 use calculated sa_socklen for bind() in tstream_bsd_connec...
commitb7e73e69414a53c5b4540d2fd69475e7d98cd1b5
authorStefan Metzmacher <metze@samba.org>
Wed, 17 Feb 2010 07:45:58 +0000 (17 08:45 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 19 Feb 2010 13:32:28 +0000 (19 14:32 +0100)
tree661a7c6c8c2df9cf752f30a053ce7715ff762b07
parent737b5304d1a3edc2d0a873f2d66c9682b62602b4
tsocket/bsd: fix bug #7140 use calculated sa_socklen for bind() in tstream_bsd_connect_send()

This is needed because, we can't use sizeof(sockaddr_storage) for AF_UNIX
sockets. Also some platforms require exact values for AF_INET and AF_INET6.

metze
(cherry picked from commit 6637b2f4b06fcee1e8e1b1782dd96e3273f8caac)
(cherry picked from commit c84c467be347384ab1ceb7d74147fef364678235)
lib/tsocket/tsocket_bsd.c