From 7ab986250a320ee8cf59e8ea3348495dae88b8a1 Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Thu, 7 May 2020 09:17:05 -0400 Subject: [PATCH] detect/file-data: Apply transforms on file_data This commit cause transforms to be applied on the sticky buffer. --- src/detect-file-data.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/detect-file-data.c b/src/detect-file-data.c index 566291cb81..16b7a5f8de 100644 --- a/src/detect-file-data.c +++ b/src/detect-file-data.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2018 Open Information Security Foundation +/* Copyright (C) 2007-2020 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free @@ -334,6 +334,8 @@ static InspectionBuffer *HttpServerBodyGetDataCallback(DetectEngineThreadCtx *de } } + InspectionBufferApplyTransforms(buffer, transforms); + /* move inspected tracker to end of the data. HtpBodyPrune will consider * the window sizes when freeing data */ body->body_inspected = body->content_len_so_far; -- 2.47.2