From: Shivani Bhardwaj Date: Mon, 3 Aug 2020 16:41:40 +0000 (+0530) Subject: datasets: Init even in socket mode X-Git-Tag: suricata-6.0.0-beta1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8f147d17a54b3199020f51cd2b811d91488393d;p=thirdparty%2Fsuricata.git datasets: Init even in socket mode Closes redmine ticket 3476. --- diff --git a/src/suricata.c b/src/suricata.c index 3def54f0b0..41e1109e49 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1990,6 +1990,8 @@ static int InitSignalHandler(SCInstance *suri) * Will be run once per pcap in unix-socket mode */ void PreRunInit(const int runmode) { + /* Initialize Datasets to be able to use them with unix socket */ + DatasetsInit(); if (runmode == RUNMODE_UNIX_SOCKET) return; @@ -2001,7 +2003,6 @@ void PreRunInit(const int runmode) SCProfilingSghsGlobalInit(); SCProfilingInit(); #endif /* PROFILING */ - DatasetsInit(); DefragInit(); FlowInitConfig(FLOW_QUIET); IPPairInitConfig(FLOW_QUIET);