diff options
author | Volker Lendecke <vl@samba.org> | 2009-04-06 14:51:34 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-04-06 21:32:07 +0200 |
commit | cb120b4df69d3997e02e0dd2ee4be150c3ce8c8b (patch) | |
tree | 6f52981456c25f7757e5803edceeea4824e9ca40 /source3 | |
parent | 64067f920405143895b1e39790e9bd2a6e176d00 (diff) | |
download | samba-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.c | 2 |
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; } |