EngineAnalysisRules2 was in a strange location where it did not respect
the --engine-analysis flag. It has been moved to the same call location
as EngineAnalysisRules.
SigMatch *sm = s->init_data->smlists[type];
s->sm_arrays[type] = SigMatchList2DataArray(sm);
}
-#ifdef HAVE_LIBJANSSON
- EngineAnalysisRules2(de_ctx, s);
-#endif
/* free lists. Ctx' are xferred to sm_arrays so won't get freed */
uint32_t i;
for (i = 0; i < s->init_data->smlists_array_size; i++) {
}
if (rule_engine_analysis_set) {
EngineAnalysisRules(de_ctx, sig, line);
+#ifdef HAVE_LIBJANSSON
+ EngineAnalysisRules2(de_ctx, sig);
+#endif
}
}
SCLogDebug("signature %"PRIu32" loaded", sig->id);