This changeset fixes a bug that was preventing suricata to dump
alert metadata info when running in unix-socket mode.
When running in unix-socket mode, suricata was skipping the
initialization of the output modules and, as a consequence,
the metadata output module was never invoked.
* but after we dropped privs */
void PreRunPostPrivsDropInit(const int runmode)
{
+ StatsSetupPostConfigPreOutput();
+ RunModeInitializeOutputs();
+
if (runmode == RUNMODE_UNIX_SOCKET)
return;
- StatsSetupPostConfigPreOutput();
- RunModeInitializeOutputs();
StatsSetupPostConfigPostOutput();
}