]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: Swap thread_ids
authorJeff Lucovsky <jeff.lucovsky@corelight.com>
Mon, 11 Mar 2024 18:58:07 +0000 (14:58 -0400)
committerVictor Julien <victor@inliniac.net>
Sat, 16 Mar 2024 08:29:38 +0000 (09:29 +0100)
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

src/flow.c

index a7f4788150ed9d9bb1eafbc7cfa2d2f02e1a958e..b326a0d0fadbbcb34a747f9e7dfee0abd8d437ba 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);
     }