tsocket: only copy the specific part of sockaddr*
commite96605da78f1a0afbaf3b0aedaf7a4730d64d3a5
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Dec 2009 18:34:32 +0000 (23 19:34 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 May 2010 12:51:19 +0000 (11 14:51 +0200)
treee2eb73c944915bec637b8d8baaa32e2760b341a8
parente9f7d271e2a96d5dbce63bc454c68930cbc52d62
tsocket: only copy the specific part of sockaddr*

This makes sure we fill the unspefic bytes with 0
and have zero termination for sockaddr_un.

metze
(cherry picked from commit 17c804a67593cdb4d8646b5be6b50fddf56b3e27)

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