From: Philippe Antoine Date: Tue, 4 Jun 2024 06:56:53 +0000 (+0200) Subject: detect: minor optimization for tx X-Git-Tag: suricata-8.0.0-beta1~960 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd23185f7d31808f3d2cff9b770f437969123f4c;p=thirdparty%2Fsuricata.git detect: minor optimization for tx do not bother to clean the buffers, if we did not run detection for this transaction. --- 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; }