1
0
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:
Volker Lendecke 2009-04-06 14:51:34 +02:00
parent 64067f9204
commit cb120b4df6

View File

@ -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;
}