From: Volker Lendecke Date: Fri, 5 Jun 2009 22:47:53 +0000 (+0200) Subject: Allow AF_UNIX for open_socket_out X-Git-Tag: tdb-1.1.5~246 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cd03b229b6f85d5a100ee39229e528641f1c238;p=thirdparty%2Fsamba.git Allow AF_UNIX for open_socket_out --- diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 40e2887440f..cf1bb7973eb 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));