From: Victor Julien Date: Sat, 6 May 2023 06:27:53 +0000 (+0200) Subject: detect/threshold: reword alloc failure message X-Git-Tag: suricata-7.0.0-rc2~258 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef5ec842e536a0c9c6dda9b6ea23df3966ac7c18;p=thirdparty%2Fsuricata.git detect/threshold: reword alloc failure message --- diff --git a/src/detect-engine-threshold.c b/src/detect-engine-threshold.c index b6101c752c..7df117c116 100644 --- a/src/detect-engine-threshold.c +++ b/src/detect-engine-threshold.c @@ -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); } }