|
|
|
@ -551,13 +551,6 @@ static void *DetectEngineLiveRuleSwap(void *arg)
|
|
|
|
goto error;
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SCClassConfLoadClassficationConfigFile(de_ctx);
|
|
|
|
|
|
|
|
SCRConfLoadReferenceConfigFile(de_ctx);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ActionInitConfig() < 0) {
|
|
|
|
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (SigLoadSignatures(de_ctx, NULL, FALSE) < 0) {
|
|
|
|
if (SigLoadSignatures(de_ctx, NULL, FALSE) < 0) {
|
|
|
|
SCLogError(SC_ERR_NO_RULES_LOADED, "Loading signatures failed.");
|
|
|
|
SCLogError(SC_ERR_NO_RULES_LOADED, "Loading signatures failed.");
|
|
|
|
if (de_ctx->failure_fatal)
|
|
|
|
if (de_ctx->failure_fatal)
|
|
|
|
@ -879,6 +872,13 @@ DetectEngineCtx *DetectEngineCtxInit(void)
|
|
|
|
SCProfilingKeywordInitCounters(de_ctx);
|
|
|
|
SCProfilingKeywordInitCounters(de_ctx);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SCClassConfLoadClassficationConfigFile(de_ctx);
|
|
|
|
|
|
|
|
SCRConfLoadReferenceConfigFile(de_ctx);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ActionInitConfig() < 0) {
|
|
|
|
|
|
|
|
goto error;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return de_ctx;
|
|
|
|
return de_ctx;
|
|
|
|
error:
|
|
|
|
error:
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
|