git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64067f9
)
Never hand out 0xffff as a mid
author
Volker Lendecke
<vl@samba.org>
Mon, 6 Apr 2009 12:51:34 +0000
(14:51 +0200)
committer
Volker Lendecke
<vl@samba.org>
Mon, 6 Apr 2009 19:32:07 +0000
(21:32 +0200)
This is used for oplock replies
source3/libsmb/async_smb.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/async_smb.c
b/source3/libsmb/async_smb.c
index fc1c7f2f62d2bf9d246d387fec4ce885e09c1c2c..1cbf4ae26f63b7a05176e14002d7f49bc384c5a2 100644
(file)
--- a/
source3/libsmb/async_smb.c
+++ b/
source3/libsmb/async_smb.c
@@
-300,7
+300,7
@@
static uint16_t cli_alloc_mid(struct cli_state *cli)
int i;
result = cli->mid++;
- if (
result == 0
) {
+ if (
(result == 0) || (result == 0xffff)
) {
continue;
}