]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: Swap thread_ids 10738/head 10770/head 10771/head
authorJeff Lucovsky <jeff.lucovsky@corelight.com>
Mon, 11 Mar 2024 18:58:07 +0000 (14:58 -0400)
committerJeff Lucovsky <jlucovsky@oisf.net>
Sat, 30 Mar 2024 12:20:00 +0000 (08:20 -0400)
Issue: 6835

When swapping the flow's direction, also swap the thread_ids.

This should help with the issues identified in
https://redmine.openinfosecfoundation.org/issues/2725

(cherry picked from commit 3c5745978f85f4bf049e2892c8bda167f9e53033)

src/flow.c

index 9783b7883b0bb88e7daa87de6c704cb558848349..b61823efd0ee07e129fa46a7d38e7bde50506677 100644 (file)
@@ -291,6 +291,8 @@ void FlowSwap(Flow *f)
     FlowSwapFlags(f);
     FlowSwapFileFlags(f);
 
+    SWAP_VARS(FlowThreadId, f->thread_id[0], f->thread_id[1]);
+
     if (f->proto == IPPROTO_TCP) {
         TcpStreamFlowSwap(f);
     }