From: Victor Julien Date: Wed, 15 Sep 2021 17:49:32 +0000 (+0200) Subject: detect/prefilter: bail early if possible X-Git-Tag: suricata-7.0.0-beta1~1407 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1035fd3aed7e546f3ef18fceba8ae7f1441cd24;p=thirdparty%2Fsuricata.git detect/prefilter: bail early if possible --- diff --git a/src/detect-engine-prefilter.c b/src/detect-engine-prefilter.c index 11cb3c878f..3b23ba98f6 100644 --- a/src/detect-engine-prefilter.c +++ b/src/detect-engine-prefilter.c @@ -108,7 +108,7 @@ void DetectRunPrefilterTx(DetectEngineThreadCtx *det_ctx, if (engine->alproto != alproto) goto next; if (engine->tx_min_progress > tx->tx_progress) - goto next; + break; if (tx->tx_progress > engine->tx_min_progress) { if (tx->prefilter_flags & BIT_U64(engine->tx_min_progress)) { goto next;