]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: fix inspection buffer for packet engines
authorVictor Julien <victor@inliniac.net>
Tue, 19 Nov 2019 15:47:47 +0000 (16:47 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 25 Nov 2019 18:46:08 +0000 (19:46 +0100)
Fix buffers not being reset per inspection round for packet engines.

Bug #3341.

src/detect.c

index 5cac567fffadda27b5acc5fda0fe1c3e76c79417..e5a6f271040d74df5db9dfff0b65cb75c0e0a24b 100644 (file)
@@ -948,6 +948,7 @@ static void DetectRunCleanup(DetectEngineThreadCtx *det_ctx,
     PACKET_PROFILING_DETECT_START(p, PROF_DETECT_CLEANUP);
     /* cleanup pkt specific part of the patternmatcher */
     PacketPatternCleanup(det_ctx);
+    InspectionBufferClean(det_ctx);
 
     if (pflow != NULL) {
         /* update inspected tracker for raw reassembly */