From 3cd03b229b6f85d5a100ee39229e528641f1c238 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 6 Jun 2009 00:47:53 +0200 Subject: Allow AF_UNIX for open_socket_out --- source3/lib/util_sock.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib') 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)); -- cgit