]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
examples/capture: fix the slot
authorJason Ish <jason.ish@oisf.net>
Fri, 22 Mar 2024 19:47:11 +0000 (13:47 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 25 Mar 2024 16:36:29 +0000 (17:36 +0100)
Use slot->slot_next, not the slot as passed in.

examples/plugins/ci-capture/source.c

index 4f4ddf6a234ed4ac0cd6bbac8ebdea8ea44dae77..c6953b2f25902eefc7da7857776ca75a949abb83 100644 (file)
@@ -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);