tsocket: only copy the specific part of sockaddr*
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Dec 2009 18:34:32 +0000 (19:34 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 17 May 2010 07:50:19 +0000 (09:50 +0200)
commit82ee4a2c5a4ba969768156d8bbdfea56cd53a187
treefd97b7f8a2272a0243d741241c34f8bfbf6b8a05
parent18717cad039d251ff9b3c4813f6e67911e0ebebc
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>
(cherry picked from commit e96605da78f1a0afbaf3b0aedaf7a4730d64d3a5)
lib/tsocket/tsocket_bsd.c