]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
detect/file-data: Apply transforms on file_data
authorJeff Lucovsky <jeff@lucovsky.org>
Thu, 7 May 2020 13:17:05 +0000 (09:17 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 5 Oct 2020 20:28:19 +0000 (22:28 +0200)
This commit cause transforms to be applied on the sticky buffer.

src/detect-file-data.c

index 566291cb815e4739e4e34bb25b7aabf070927639..16b7a5f8de415d2a94951729ce6495dffa150c2c 100644 (file)
@@ -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;