svn commit: samba r4909 - in branches/SAMBA_4_0/source/libcli/nbt: .
tridge at samba.org
tridge at samba.org
Fri Jan 21 20:38:33 GMT 2005
Author: tridge
Date: 2005-01-21 20:38:33 +0000 (Fri, 21 Jan 2005)
New Revision: 4909
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4909
Log:
fixed name_trn_id generation (thanks to metze for spotting the bug!)
Modified:
branches/SAMBA_4_0/source/libcli/nbt/nbtsocket.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/nbt/nbtsocket.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/nbt/nbtsocket.c 2005-01-21 20:19:50 UTC (rev 4908)
+++ branches/SAMBA_4_0/source/libcli/nbt/nbtsocket.c 2005-01-21 20:38:33 UTC (rev 4909)
@@ -345,10 +345,12 @@
id = idr_get_new_above(req->nbtsock->idr, req,
req->request->name_trn_id, UINT16_MAX);
if (id == -1) {
- id = idr_get_new_above(req->nbtsock->idr, req, 1+(generate_random()%(UINT16_MAX/2)),
+ id = idr_get_new_above(req->nbtsock->idr, req,
+ 1+(generate_random()%(UINT16_MAX/2)),
UINT16_MAX);
}
if (id == -1) goto failed;
+ req->request->name_trn_id = id;
te.next_event = timeout;
te.handler = nbt_name_socket_timeout;
More information about the samba-cvs
mailing list