summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-26 08:08:37 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-29 00:14:53 +0200
commitd6e7a76461ad7582efa510676aa2bea230ea9f02 (patch)
treee08041a36e83e81e8902b3d3896105092d472a61 /source3/smbd
parentbd6d415cae550e97e04830eecefa2881b497de89 (diff)
downloadsamba-d6e7a76461ad7582efa510676aa2bea230ea9f02.tar.gz
samba-d6e7a76461ad7582efa510676aa2bea230ea9f02.tar.bz2
samba-d6e7a76461ad7582efa510676aa2bea230ea9f02.zip
s3:smb2_server: clear sequence window if we got the lowest sequence id
Otherwise we'll never consume sequence id '0'. metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 6f45194e39..77c6870399 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -364,13 +364,13 @@ static bool smb2_validate_message_id(struct smbd_server_connection *sconn,
}
bitmap_set(credits_bm, bitmap_offset);
- if (i == sconn->smb2.seqnum_low + 1) {
+ if (i == sconn->smb2.seqnum_low) {
/* Move the window forward by all the message_id's
already seen. */
while (bitmap_query(credits_bm, bitmap_offset)) {
DEBUG(10,("smb2_validate_message_id: clearing "
"id %llu (position %u) from bitmap\n",
- (unsigned long long)(sconn->smb2.seqnum_low + 1),
+ (unsigned long long)(sconn->smb2.seqnum_low),
bitmap_offset));
bitmap_clear(credits_bm, bitmap_offset);
sconn->smb2.seqnum_low += 1;