summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/smbd/service_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smbd/service_stream.c b/source4/smbd/service_stream.c
index cb084a0039..efbcfb490a 100644
--- a/source4/smbd/service_stream.c
+++ b/source4/smbd/service_stream.c
@@ -296,7 +296,7 @@ NTSTATUS stream_setup_socket(TALLOC_CTX *mem_ctx,
/* this is for non-IP sockets, eg. unix domain sockets */
socket_address = socket_address_from_strings(stream_socket,
stream_socket->sock->backend_name,
- sock_addr, 0);
+ sock_addr, port?*port:0);
NT_STATUS_HAVE_NO_MEMORY(socket_address);
}