1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s4-ipv6: fixed binding to ipv4 addresses

This commit is contained in:
Andrew Tridgell 2011-06-03 17:57:57 +10:00
parent be91effc20
commit 0b11061b05

View File

@ -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);
}