]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: add comment on flow handling
authorEric Leblond <el@stamus-networks.com>
Thu, 19 Aug 2021 14:30:50 +0000 (16:30 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 1 Sep 2021 06:33:52 +0000 (08:33 +0200)
src/flow-manager.c

index 2bbd3968fee7356f3eaa0cb2074a591eb3a16fde..503785b4bf23189195fc41437c99944f836aed31 100644 (file)
@@ -334,14 +334,13 @@ static uint32_t ProcessAsideQueue(FlowManagerTimeoutThread *td, FlowTimeoutCount
     while ((f = FlowQueuePrivateGetFromTop(&td->aside_queue)) != NULL) {
         /* flow is still locked */
 
-        if (f->proto == IPPROTO_TCP &&
-                !(f->flags & FLOW_TIMEOUT_REASSEMBLY_DONE) &&
+        if (f->proto == IPPROTO_TCP && !(f->flags & FLOW_TIMEOUT_REASSEMBLY_DONE) &&
 #ifdef CAPTURE_OFFLOAD
                 f->flow_state != FLOW_STATE_CAPTURE_BYPASSED &&
 #endif
                 f->flow_state != FLOW_STATE_LOCAL_BYPASSED &&
-                FlowForceReassemblyNeedReassembly(f) == 1)
-        {
+                FlowForceReassemblyNeedReassembly(f) == 1) {
+            /* Send the flow to its thread */
             FlowForceReassemblyForFlow(f);
             FLOWLOCK_UNLOCK(f);
             /* flow ownership is passed to the worker thread */