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

r5196: fixed sily bug (that metze found)

(This used to be commit 180f29f9e0)
This commit is contained in:
Andrew Tridgell 2005-02-03 11:30:36 +00:00 committed by Gerald (Jerry) Carter
parent 0798d54b4f
commit dc35a0eb4f

View File

@ -91,7 +91,7 @@ static NTSTATUS nbt_add_socket(struct nbt_server *nbtsrv,
if (strcmp(netmask, "0.0.0.0") != 0) { if (strcmp(netmask, "0.0.0.0") != 0) {
bcast_nbtsock = nbt_name_socket_init(iface, nbtsrv->task->event_ctx); bcast_nbtsock = nbt_name_socket_init(iface, nbtsrv->task->event_ctx);
NT_STATUS_HAVE_NO_MEMORY(iface->ip_address); NT_STATUS_HAVE_NO_MEMORY(bcast_nbtsock);
status = socket_listen(bcast_nbtsock->sock, bcast, lp_nbt_port(), 0, 0); status = socket_listen(bcast_nbtsock->sock, bcast, lp_nbt_port(), 0, 0);
if (!NT_STATUS_IS_OK(status)) { if (!NT_STATUS_IS_OK(status)) {