s3:smb2_server: fix calculation of the next bitmap_offset
authorStefan Metzmacher <metze@samba.org>
Mon, 25 Jun 2012 21:39:37 +0000 (23:39 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Jun 2012 22:14:52 +0000 (00:14 +0200)
metze

source3/smbd/smb2_server.c

index 0af1303f0f107a56f7adb96b745587a107839137..6f45194e391bc86edf553399ab2328180371c641 100644 (file)
@@ -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;
                        }
                }