]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/analyzer: add debug statements
authorVictor Julien <victor@inliniac.net>
Thu, 18 Oct 2018 19:01:56 +0000 (21:01 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 18 Oct 2018 19:43:58 +0000 (21:43 +0200)
src/detect-engine-analyzer.c

index 43d73fe3c9c9590ab8b983f9a8d1e4ca0fd43246..648540fe3a5042d7fb08450b0f6ab371490280f7 100644 (file)
@@ -582,11 +582,13 @@ static void DumpMatches(RuleAnalyzer *ctx, json_t *js, const SigMatchData *smd)
 SCMutex g_rules_analyzer_write_m = SCMUTEX_INITIALIZER;
 void EngineAnalysisRules2(const DetectEngineCtx *de_ctx, const Signature *s)
 {
+    SCEnter();
+
     RuleAnalyzer ctx = { NULL, NULL, NULL };
 
     ctx.js = json_object();
     if (ctx.js == NULL)
-        return;
+        SCReturn;
 
     json_object_set_new(ctx.js, "raw", json_string(s->sig_str));
     json_object_set_new(ctx.js, "id", json_integer(s->id));
@@ -796,7 +798,7 @@ void EngineAnalysisRules2(const DetectEngineCtx *de_ctx, const Signature *s)
     }
     json_object_clear(ctx.js);
     json_decref(ctx.js);
-    return;
+    SCReturn;
 }
 #endif /* HAVE_LIBJANSSON */