As we need to know if we should parse the signature metadata, we
have to parse the output configuration before initializing the
detection engine.
if (PostConfLoadedSetup(&suricata) != TM_ECODE_OK) {
exit(EXIT_FAILURE);
}
- PostConfLoadedDetectSetup(&suricata);
SCDropMainThreadCaps(suricata.userid, suricata.groupid);
PreRunPostPrivsDropInit(suricata.run_mode);
+ PostConfLoadedDetectSetup(&suricata);
+
if (suricata.run_mode == RUNMODE_CONF_TEST){
SCLogNotice("Configuration provided was successfully loaded. Exiting.");
#ifdef HAVE_MAGIC