]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util-runmode: pass initdata to runmode workers for nfqueue 2156/head
authorAndreas Herz <andi@geekosphere.org>
Wed, 15 Jun 2016 21:44:34 +0000 (23:44 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 17 Jun 2016 11:20:01 +0000 (13:20 +0200)
The VerdictNFQ was missing the initdata which results in a segfault
within CaptureStatsSetup. This commit adds the passing of the initdata.

src/util-runmodes.c

index 8f01983ab41bb358997fda4d02e83a8c9134a747..b7e8f09ccad370c9bfe57b6744165e1896e3c8cc 100644 (file)
@@ -629,7 +629,7 @@ int RunModeSetIPSWorker(ConfigIPSParserFunc ConfigParser,
             exit(EXIT_FAILURE);
         }
 
-        TmSlotSetFuncAppend(tv, tm_module, NULL);
+        TmSlotSetFuncAppend(tv, tm_module, (void *) ConfigParser(i));
 
         tm_module = TmModuleGetByName("RespondReject");
         if (tm_module == NULL) {