detect/analyzer: disable automatic json output

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.
pull/3486/head
Jacob Masen-Smith 8 years ago committed by Victor Julien
parent 64d75496b8
commit b1b45a54c5

@ -1855,9 +1855,6 @@ static int SigMatchPrepare(DetectEngineCtx *de_ctx)
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++) {

@ -175,6 +175,9 @@ static int DetectLoadSigFile(DetectEngineCtx *de_ctx, char *sig_file,
}
if (rule_engine_analysis_set) {
EngineAnalysisRules(de_ctx, sig, line);
#ifdef HAVE_LIBJANSSON
EngineAnalysisRules2(de_ctx, sig);
#endif
}
}
SCLogDebug("signature %"PRIu32" loaded", sig->id);

Loading…
Cancel
Save