]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: minor optimization for tx
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 4 Jun 2024 06:56:53 +0000 (08:56 +0200)
committerVictor Julien <victor@inliniac.net>
Sun, 4 Aug 2024 07:19:42 +0000 (09:19 +0200)
do not bother to clean the buffers, if we did not run detection
for this transaction.

src/detect.c

index 0b31a8471e85c448c21b95fa13cec16818951a88..70612516fbd3ed661922a0e90fbe5e198a8da8d4 100644 (file)
@@ -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;
     }