summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-06 14:51:34 +0200
committerVolker Lendecke <vl@samba.org>2009-04-06 21:32:07 +0200
commitcb120b4df69d3997e02e0dd2ee4be150c3ce8c8b (patch)
tree6f52981456c25f7757e5803edceeea4824e9ca40 /source3
parent64067f920405143895b1e39790e9bd2a6e176d00 (diff)
downloadsamba-cb120b4df69d3997e02e0dd2ee4be150c3ce8c8b.tar.gz
samba-cb120b4df69d3997e02e0dd2ee4be150c3ce8c8b.tar.bz2
samba-cb120b4df69d3997e02e0dd2ee4be150c3ce8c8b.zip
Never hand out 0xffff as a mid
This is used for oplock replies
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/async_smb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index fc1c7f2f62..1cbf4ae26f 100644
--- 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;
}