From: Andreas Herz Date: Wed, 15 Jun 2016 21:44:34 +0000 (+0200) Subject: util-runmode: pass initdata to runmode workers for nfqueue X-Git-Tag: suricata-3.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0baa83d2b80127b314ca13b03ccd5222707afc1;p=thirdparty%2Fsuricata.git util-runmode: pass initdata to runmode workers for nfqueue The VerdictNFQ was missing the initdata which results in a segfault within CaptureStatsSetup. This commit adds the passing of the initdata. --- diff --git a/src/util-runmodes.c b/src/util-runmodes.c index 8f01983ab4..b7e8f09cca 100644 --- a/src/util-runmodes.c +++ b/src/util-runmodes.c @@ -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) {