]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2941 in SNORT/snort3 from ~SMINUT/snort3:is_ack_valid to master
authorMasud Hasan (mashasan) <mashasan@cisco.com>
Wed, 16 Jun 2021 20:42:37 +0000 (20:42 +0000)
committerMasud Hasan (mashasan) <mashasan@cisco.com>
Wed, 16 Jun 2021 20:42:37 +0000 (20:42 +0000)
Squashed commit of the following:

commit c1f81f31a14a16a57e4addc67ea971f39d43f9e5
Author: Silviu Minut <sminut@cisco.com>
Date:   Thu Jun 10 17:15:12 2021 -0400

    stream: fix is_ack_valid to return true even when current ack is to the left of snd_una, per RFC793

src/stream/tcp/tcp_stream_tracker.h

index 0945f2ea8f512b4a6c0d363be9e247741c0b26e4..1bc7f6b95511811007f0bfb4d6f4ebc87e37c432 100644 (file)
@@ -194,7 +194,7 @@ public:
         if ( ( snd_una == 0 ) && ( snd_nxt == 0 ) )
             return true;
 
-        bool valid = SEQ_GEQ(cur, snd_una) && SEQ_LEQ(cur, snd_nxt);
+        bool valid = SEQ_LEQ(cur, snd_nxt);
         if ( !valid )
             tcpStats.invalid_ack++;