Loading of classifications, references and action order was done
unconditionally, so can be done in one place.
goto error;
}
- SCClassConfLoadClassficationConfigFile(de_ctx);
- SCRConfLoadReferenceConfigFile(de_ctx);
-
- if (ActionInitConfig() < 0) {
- exit(EXIT_FAILURE);
- }
-
if (SigLoadSignatures(de_ctx, NULL, FALSE) < 0) {
SCLogError(SC_ERR_NO_RULES_LOADED, "Loading signatures failed.");
if (de_ctx->failure_fatal)
SCProfilingKeywordInitCounters(de_ctx);
#endif
+ SCClassConfLoadClassficationConfigFile(de_ctx);
+ SCRConfLoadReferenceConfigFile(de_ctx);
+
+ if (ActionInitConfig() < 0) {
+ goto error;
+ }
+
return de_ctx;
error:
return NULL;
CudaVarsSetDeCtx(de_ctx);
#endif /* __SC_CUDA_SUPPORT__ */
- SCClassConfLoadClassficationConfigFile(de_ctx);
- SCRConfLoadReferenceConfigFile(de_ctx);
-
- if (ActionInitConfig() < 0) {
- exit(EXIT_FAILURE);
- }
} else {
/* disable raw reassembly */
(void)ConfSetFinal("stream.reassembly.raw", "false");