From: Victor Julien Date: Thu, 23 Nov 2023 05:49:12 +0000 (+0100) Subject: eve/alert: init membuffer size on missing config X-Git-Tag: suricata-8.0.0-beta1~1619 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=462a6d7913c927dba7d1d8313acf137d7d87b071;p=thirdparty%2Fsuricata.git eve/alert: init membuffer size on missing config Don't init buffer to 0 size but use the desired default of 4k. --- diff --git a/src/output-json-alert.c b/src/output-json-alert.c index d66e1a15f9..7f1968912c 100644 --- a/src/output-json-alert.c +++ b/src/output-json-alert.c @@ -909,14 +909,13 @@ static void JsonAlertLogSetupMetadata(AlertJsonOutputCtx *json_output_ctx, warn_no_meta = true; } } - - json_output_ctx->payload_buffer_size = payload_buffer_size; } if (flags & LOG_JSON_RULE_METADATA) { DetectEngineSetParseMetadata(); } + json_output_ctx->payload_buffer_size = payload_buffer_size; json_output_ctx->flags |= flags; }