mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r5116: fixed build of the nbtlist code
This commit is contained in:
parent
4c0cc5fc11
commit
506e1e823c
@ -62,8 +62,13 @@ static void nbtlist_handler(struct nbt_name_request *req)
|
|||||||
if (!NT_STATUS_IS_OK(c->status)) {
|
if (!NT_STATUS_IS_OK(c->status)) {
|
||||||
c->state = SMBCLI_REQUEST_ERROR;
|
c->state = SMBCLI_REQUEST_ERROR;
|
||||||
} else {
|
} else {
|
||||||
c->state = SMBCLI_REQUEST_DONE;
|
if (state->io_queries[i].out.num_addrs < 1) {
|
||||||
state->reply_addr = talloc_steal(state, state->io_queries[i].out.reply_addr);
|
c->state = SMBCLI_REQUEST_ERROR;
|
||||||
|
c->status = NT_STATUS_UNEXPECTED_NETWORK_ERROR;
|
||||||
|
} else {
|
||||||
|
c->state = SMBCLI_REQUEST_DONE;
|
||||||
|
state->reply_addr = talloc_steal(state, state->io_queries[i].out.reply_addrs[0]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
Loading…
Reference in New Issue
Block a user