summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-04 05:40:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:44 -0500
commitc5a6c7f61ccf7baf92ea201d4463fbe453ca60e2 (patch)
tree575885a28c8ac5bb199808403d0819f510136eed
parent81e05038b6fca971b060b649899999ae156091cd (diff)
downloadsamba-c5a6c7f61ccf7baf92ea201d4463fbe453ca60e2.tar.gz
samba-c5a6c7f61ccf7baf92ea201d4463fbe453ca60e2.tar.bz2
samba-c5a6c7f61ccf7baf92ea201d4463fbe453ca60e2.zip
r12710: Fix socket_wrapper: Make sure to fill in the socket family on the
returned address. Andrew Bartlett (This used to be commit 57b0aae0d4b52d9a9879c4606d2e4b3ef0d3d0d7)
-rw-r--r--source4/lib/socket_wrapper/socket_wrapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/socket_wrapper/socket_wrapper.c b/source4/lib/socket_wrapper/socket_wrapper.c
index 1114234437..a2ca07b083 100644
--- a/source4/lib/socket_wrapper/socket_wrapper.c
+++ b/source4/lib/socket_wrapper/socket_wrapper.c
@@ -160,6 +160,7 @@ static int convert_un_in(const struct sockaddr_un *un, struct sockaddr_in *in, s
return -1;
}
+ in->sin_family = AF_INET;
in->sin_addr.s_addr = htonl((127<<24) | iface);
in->sin_port = htons(prt);