]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/threshold: reword alloc failure message
authorVictor Julien <vjulien@oisf.net>
Sat, 6 May 2023 06:27:53 +0000 (08:27 +0200)
committerVictor Julien <vjulien@oisf.net>
Sat, 6 May 2023 12:50:42 +0000 (14:50 +0200)
src/detect-engine-threshold.c

index b6101c752c3eea2892fa2bb66cdb13971c231ba1..7df117c1169489e5808f2c6e45ba0cdb8e72eb31 100644 (file)
@@ -712,9 +712,9 @@ void ThresholdHashAllocate(DetectEngineCtx *de_ctx)
     de_ctx->ths_ctx.th_size = highest_signum + 1;
     de_ctx->ths_ctx.th_entry = SCCalloc(de_ctx->ths_ctx.th_size, sizeof(DetectThresholdEntry *));
     if (de_ctx->ths_ctx.th_entry == NULL) {
-        FatalError("Error allocating memory for rule "
-                   "thresholds (tried to allocate %" PRIu32 " th_entrys for "
-                   "rule tracking)",
+        FatalError(
+                "failed to allocate memory for \"by_rule\" thresholding (tried to allocate %" PRIu32
+                " entries)",
                 de_ctx->ths_ctx.th_size);
     }
 }