]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #3031 in SNORT/snort3 from ~RDEMPSTE/snort3:rule_set to master
authorRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 19 Aug 2021 13:06:37 +0000 (13:06 +0000)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 19 Aug 2021 13:06:37 +0000 (13:06 +0000)
Squashed commit of the following:

commit 6b3ca22e8a2b259e07236b5c548452757144671b
Author: Ron Dempster (rdempste) <rdempste@cisco.com>
Date:   Wed Aug 18 19:38:24 2021 -0400

    flow: set the client initiated flag before publishing the flow state setup event

src/flow/flow_control.cc

index 1d934912276fd33992afb523ac7e7771fffe7a7d..fc8bff39da77397aad4f66227c1f6b206336753d 100644 (file)
@@ -460,6 +460,7 @@ unsigned FlowControl::process(Flow* flow, Packet* p)
         // process expected flows
         check_expected_flow(flow, p);
 
+        flow->set_client_initiate(p);
         DataBus::publish(FLOW_STATE_SETUP_EVENT, p);
 
         if ( flow->flow_state == Flow::FlowState::SETUP ||
@@ -469,7 +470,6 @@ unsigned FlowControl::process(Flow* flow, Packet* p)
 
         ++news;
         flow->flowstats.start_time = p->pkth->ts;
-        flow->set_client_initiate(p);
     }
 
     // This requires the packet direction to be set