]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4615: SSE: deletion of continuations
authorYehor Velykozhon -X (yvelykoz - SOFTSERVE INC at Cisco) <yvelykoz@cisco.com>
Thu, 13 Feb 2025 09:31:49 +0000 (09:31 +0000)
committerOleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) <oshumeik@cisco.com>
Thu, 13 Feb 2025 09:31:49 +0000 (09:31 +0000)
Merge in SNORT/snort3 from ~YVELYKOZ/snort3:sse_recall_old_cont_on_limit to master

Squashed commit of the following:

commit fad4d37f74ab9445fc00aab2a72bf84eed8532e7
Author: Yehor Velykozhon <yvelykoz@cisco.com>
Date:   Thu Feb 6 17:13:32 2025 +0200

    detection: fix leave_group call which should be against current packet only

src/detection/detection_continuation.h

index acfd7a94037e7c2df6ef9376c394916947f11e79..d64775fa36f390fbe5ee8456513b7d362220a089 100644 (file)
@@ -188,8 +188,9 @@ void Continuation::eval(snort::Packet& p)
         {
             assert(0 < states_cnt);
             assert(st != &states);
+            assert((**st).packet_number != p.context->packet_number);
+
             --states_cnt;
-            st->leave_group();
             delete st;
         }
     }