Skip to content

Commit

Permalink
dpdk: fix thread slot assignment
Browse files Browse the repository at this point in the history
Commit 5592ec0 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
  • Loading branch information
Lukas Sismis authored and victorjulien committed Apr 10, 2024
1 parent 3fdcf7f commit 28ac3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28ac3c2

Please sign in to comment.