From bd23185f7d31808f3d2cff9b770f437969123f4c Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 4 Jun 2024 08:56:53 +0200 Subject: [PATCH] detect: minor optimization for tx do not bother to clean the buffers, if we did not run detection for this transaction. --- src/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.c b/src/detect.c index 0b31a8471e..70612516fb 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1638,9 +1638,9 @@ static void DetectRunTx(ThreadVars *tv, StoreDetectFlags(&tx, flow_flags, ipproto, alproto, new_detect_flags); } -next: InspectionBufferClean(det_ctx); + next: if (!ires.has_next) break; } -- 2.47.2