]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smb2_server: fix calculation of the next bitmap_offset
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Jun 2012 07:12:44 +0000 (09:12 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Jul 2012 18:50:07 +0000 (20:50 +0200)
metze
(similar to commit bd6d415cae550e97e04830eecefa2881b497de89)

source3/smbd/smb2_server.c

index f4f9be84c067c9b09d84cc7445659a249f244832..5cb31b3f5c4dd2f1cefde7fe5cb14547058f5953 100644 (file)
@@ -353,7 +353,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;
                }
        }