summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-06 00:47:53 +0200
committerVolker Lendecke <vl@samba.org>2009-06-06 10:42:54 +0200
commit3cd03b229b6f85d5a100ee39229e528641f1c238 (patch)
tree2c2f06ff81dd6f50972f4895e720a95f4f1649a1 /source3/lib
parentf19c9147a5f2222ce8c21d8e194ac7de1a0a196f (diff)
downloadsamba-3cd03b229b6f85d5a100ee39229e528641f1c238.tar.gz
samba-3cd03b229b6f85d5a100ee39229e528641f1c238.tar.bz2
samba-3cd03b229b6f85d5a100ee39229e528641f1c238.zip
Allow AF_UNIX for open_socket_out
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 40e2887440..cf1bb7973e 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -1018,6 +1018,10 @@ struct tevent_req *open_socket_out_send(TALLOC_CTX *mem_ctx,
state->salen = sizeof(struct sockaddr_in);
}
+ if (pss->ss_family == AF_UNIX) {
+ state->salen = sizeof(struct sockaddr_un);
+ }
+
print_sockaddr(addr, sizeof(addr), &state->ss);
DEBUG(3,("Connecting to %s at port %u\n", addr, (unsigned int)port));