From 28ac3c20977c3bdaa1ee50f1e542e77bbe1fed78 Mon Sep 17 00:00:00 2001 From: Lukas Sismis Date: Sat, 23 Mar 2024 23:11:16 +0100 Subject: [PATCH] dpdk: fix thread slot assignment Commit 5592ec07 introduced a bug where ptv->slot was assigned with the current one instead of the next one in the list. This caused a Suricata crash in the DPDK mode. Ticket: 6877 --- src/source-dpdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source-dpdk.c b/src/source-dpdk.c index 6bf5917c32b9..d6720fa83198 100644 --- a/src/source-dpdk.c +++ b/src/source-dpdk.c @@ -568,7 +568,7 @@ static TmEcode ReceiveDPDKLoop(ThreadVars *tv, void *data, void *slot) { SCEnter(); DPDKThreadVars *ptv = (DPDKThreadVars *)data; - ptv->slot = (TmSlot *)slot; + ptv->slot = ((TmSlot *)slot)->slot_next; TmEcode ret = ReceiveDPDKLoopInit(tv, ptv); if (ret != TM_ECODE_OK) { SCReturnInt(ret);