1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

r5116: fixed build of the nbtlist code

(This used to be commit 506e1e823cd3f652a793db9f4c43147d298b9b8b)
This commit is contained in:
Andrew Tridgell 2005-01-31 02:50:49 +00:00 committed by Gerald (Jerry) Carter
parent b8ab357df9
commit 5269fb13a9

View File

@ -62,8 +62,13 @@ static void nbtlist_handler(struct nbt_name_request *req)
if (!NT_STATUS_IS_OK(c->status)) {
c->state = SMBCLI_REQUEST_ERROR;
} else {
c->state = SMBCLI_REQUEST_DONE;
state->reply_addr = talloc_steal(state, state->io_queries[i].out.reply_addr);
if (state->io_queries[i].out.num_addrs < 1) {
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: