]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4873: flow: clear flow ref in pkt on stale flow cleanup
authorRaza Shafiq (rshafiq) <rshafiq@cisco.com>
Mon, 25 Aug 2025 17:49:22 +0000 (17:49 +0000)
committerSteven Baigal (sbaigal) <sbaigal@cisco.com>
Mon, 25 Aug 2025 17:49:22 +0000 (17:49 +0000)
Merge in SNORT/snort3 from ~RSHAFIQ/snort3:stale_flow to master

Squashed commit of the following:

commit 7b40b1ea05c04f00f4abdae0b8a83bb42daaf801
Author: rshafiq <rshafiq@cisco.com>
Date:   Tue Aug 19 11:17:00 2025 -0400

    flow: clear flow ref in pkt on stale flow cleanup

src/flow/flow_control.cc

index 83cf80152ee32df8961456d075e6d3c720f47460..dba4217998fe060d16414d48c57aa341a49b30d1 100644 (file)
@@ -174,7 +174,10 @@ Flow* FlowControl::stale_flow_cleanup(FlowCache* cache, Flow* flow, Packet* p)
             PacketTracerSuspend pt_susp;
 
             if ( cache->release(flow, PruneReason::STALE) )
+            {
                 flow = nullptr;
+                p->flow = nullptr;
+            }
         }
     }