Allow AF_UNIX for open_socket_out
authorVolker Lendecke <vl@samba.org>
Fri, 5 Jun 2009 22:47:53 +0000 (00:47 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 6 Jun 2009 08:42:54 +0000 (10:42 +0200)
source3/lib/util_sock.c

index 40e2887440f8f48f1d153990d0daf1f1eec4468f..cf1bb7973eb626c1c3a73337982868e38fb9e956 100644 (file)
@@ -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));