datasets: Init even in socket mode

Closes redmine ticket 3476.
pull/5265/head
Shivani Bhardwaj 5 years ago committed by Victor Julien
parent 93eef1da84
commit a8f147d17a

@ -1990,6 +1990,8 @@ static int InitSignalHandler(SCInstance *suri)
* Will be run once per pcap in unix-socket mode */ * Will be run once per pcap in unix-socket mode */
void PreRunInit(const int runmode) void PreRunInit(const int runmode)
{ {
/* Initialize Datasets to be able to use them with unix socket */
DatasetsInit();
if (runmode == RUNMODE_UNIX_SOCKET) if (runmode == RUNMODE_UNIX_SOCKET)
return; return;
@ -2001,7 +2003,6 @@ void PreRunInit(const int runmode)
SCProfilingSghsGlobalInit(); SCProfilingSghsGlobalInit();
SCProfilingInit(); SCProfilingInit();
#endif /* PROFILING */ #endif /* PROFILING */
DatasetsInit();
DefragInit(); DefragInit();
FlowInitConfig(FLOW_QUIET); FlowInitConfig(FLOW_QUIET);
IPPairInitConfig(FLOW_QUIET); IPPairInitConfig(FLOW_QUIET);

Loading…
Cancel
Save