summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/smb2_server.c')
-rw-r--r--source3/smbd/smb2_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 0af1303f0f..6f45194e39 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -374,7 +374,7 @@ static bool smb2_validate_message_id(struct smbd_server_connection *sconn,
bitmap_offset));
bitmap_clear(credits_bm, bitmap_offset);
sconn->smb2.seqnum_low += 1;
- bitmap_offset = (bitmap_offset + 1) %
+ bitmap_offset = sconn->smb2.seqnum_low %
sconn->smb2.max_credits;
}
}