From: Victor Julien Date: Tue, 19 Nov 2019 15:47:47 +0000 (+0100) Subject: detect: fix inspection buffer for packet engines X-Git-Tag: suricata-5.0.1~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=502a8b5fb324cc6c7dfdbaf0f2ce4a3c6877e734;p=thirdparty%2Fsuricata.git detect: fix inspection buffer for packet engines Fix buffers not being reset per inspection round for packet engines. Bug #3341. --- diff --git a/src/detect.c b/src/detect.c index 5cac567fff..e5a6f27104 100644 --- a/src/detect.c +++ b/src/detect.c @@ -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 */