From ef5ec842e536a0c9c6dda9b6ea23df3966ac7c18 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 6 May 2023 08:27:53 +0200 Subject: [PATCH] detect/threshold: reword alloc failure message --- src/detect-engine-threshold.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }