From: Jason Ish Date: Fri, 22 Mar 2024 19:47:11 +0000 (-0600) Subject: examples/capture: fix the slot X-Git-Tag: suricata-8.0.0-beta1~1588 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02b019d0719b291862877b3a2edb95f1e1b02956;p=thirdparty%2Fsuricata.git examples/capture: fix the slot Use slot->slot_next, not the slot as passed in. --- diff --git a/examples/plugins/ci-capture/source.c b/examples/plugins/ci-capture/source.c index 4f4ddf6a23..c6953b2f25 100644 --- a/examples/plugins/ci-capture/source.c +++ b/examples/plugins/ci-capture/source.c @@ -59,7 +59,7 @@ static TmEcode ReceiveLoop(ThreadVars *tv, void *data, void *slot) SCReturnInt(TM_ECODE_OK); } - TmSlot *s = (TmSlot *)slot; + TmSlot *s = ((TmSlot *)slot)->slot_next; /* Notify we are running and processing packets. */ TmThreadsSetFlag(tv, THV_RUNNING);