git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b5f866
)
r4909: fixed name_trn_id generation (thanks to metze for spotting the bug!)
author
Andrew Tridgell
<tridge@samba.org>
Fri, 21 Jan 2005 20:38:33 +0000
(20:38 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:09:05 +0000
(13:09 -0500)
(This used to be commit
9d2d16ce5fd57cad01ddaf1112beed916cc2088d
)
source4/libcli/nbt/nbtsocket.c
patch
|
blob
|
history
diff --git
a/source4/libcli/nbt/nbtsocket.c
b/source4/libcli/nbt/nbtsocket.c
index 8b212fb5556fa7f502872f7ae38d3cf2e99f96f0..b0248b6de0f39e88f436eaa0d2e269dc46d73305 100644
(file)
--- a/
source4/libcli/nbt/nbtsocket.c
+++ b/
source4/libcli/nbt/nbtsocket.c
@@
-345,10
+345,12
@@
struct nbt_name_request *nbt_name_request_send(struct nbt_name_socket *nbtsock,
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;