summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-06-03 17:57:57 +1000
committerAndrew Tridgell <tridge@samba.org>2011-06-06 12:26:10 +1000
commit0b11061b05cf6fdda8bf8a9be1a8da5b0cac1707 (patch)
tree6fdf75bc44751d88a744632ab68cf1ef93e523e1 /source4
parentbe91effc20b6454f2b71aaadff3ff02378df164f (diff)
downloadsamba-0b11061b05cf6fdda8bf8a9be1a8da5b0cac1707.tar.gz
samba-0b11061b05cf6fdda8bf8a9be1a8da5b0cac1707.tar.bz2
samba-0b11061b05cf6fdda8bf8a9be1a8da5b0cac1707.zip
s4-ipv6: fixed binding to ipv4 addresses
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);
}