From dc043d0297546e549bd8f9d569c251d5213b13e8 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 19 Jun 2024 16:45:03 +0200 Subject: [PATCH] detect: remove unused field content_inspect_window is used in app-layer-smtp, but not directly in detect-file-data --- src/detect-file-data.c | 5 ++--- src/detect.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/detect-file-data.c b/src/detect-file-data.c index 312e3aaac876..732dfd63731c 100644 --- a/src/detect-file-data.c +++ b/src/detect-file-data.c @@ -101,15 +101,14 @@ static void SetupDetectEngineConfig(DetectEngineCtx *de_ctx) { for (int i = 0; i < (int)ALPROTO_MAX; i++) { de_ctx->filedata_config[i].content_limit = FILEDATA_CONTENT_LIMIT; de_ctx->filedata_config[i].content_inspect_min_size = FILEDATA_CONTENT_INSPECT_MIN_SIZE; - de_ctx->filedata_config[i].content_inspect_window = FILEDATA_CONTENT_INSPECT_WINDOW; } /* add protocol specific settings here */ /* SMTP */ de_ctx->filedata_config[ALPROTO_SMTP].content_limit = smtp_config.content_limit; - de_ctx->filedata_config[ALPROTO_SMTP].content_inspect_min_size = smtp_config.content_inspect_min_size; - de_ctx->filedata_config[ALPROTO_SMTP].content_inspect_window = smtp_config.content_inspect_window; + de_ctx->filedata_config[ALPROTO_SMTP].content_inspect_min_size = + smtp_config.content_inspect_min_size; de_ctx->filedata_config_initialized = true; } diff --git a/src/detect.h b/src/detect.h index 6a2d9c2792db..26cff6352e67 100644 --- a/src/detect.h +++ b/src/detect.h @@ -957,7 +957,6 @@ typedef struct DetectEngineCtx_ { struct { uint32_t content_limit; uint32_t content_inspect_min_size; - uint32_t content_inspect_window; } filedata_config[ALPROTO_MAX]; #ifdef PROFILE_RULES