svn commit: samba r5116 - in
branches/SAMBA_4_0/source/libcli/resolve: .
tridge at samba.org
tridge at samba.org
Mon Jan 31 02:50:49 GMT 2005
Author: tridge
Date: 2005-01-31 02:50:49 +0000 (Mon, 31 Jan 2005)
New Revision: 5116
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5116
Log:
fixed build of the nbtlist code
Modified:
branches/SAMBA_4_0/source/libcli/resolve/nbtlist.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/resolve/nbtlist.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/resolve/nbtlist.c 2005-01-31 02:02:34 UTC (rev 5115)
+++ branches/SAMBA_4_0/source/libcli/resolve/nbtlist.c 2005-01-31 02:50:49 UTC (rev 5116)
@@ -62,8 +62,13 @@
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:
More information about the samba-cvs
mailing list