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
pull/10795/head
Lukas Sismis 11 months ago committed by Victor Julien
parent 3fdcf7fbe4
commit 28ac3c2097

@ -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);

Loading…
Cancel
Save