mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Never hand out 0xffff as a mid
This is used for oplock replies
This commit is contained in:
parent
64067f9204
commit
cb120b4df6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user