From: Victor Julien Date: Tue, 11 Feb 2025 11:42:37 +0000 (+0100) Subject: detect/mpm: fix chop flag passed on incorrectly X-Git-Tag: suricata-8.0.0-beta1~460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=322d3a40216dbe702a35a98b10cef275df027632;p=thirdparty%2Fsuricata.git detect/mpm: fix chop flag passed on incorrectly --- diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 19f0c2872d..fab8a66146 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -1609,8 +1609,8 @@ static void MpmStoreSetup(const DetectEngineCtx *de_ctx, MpmStore *ms) uint8_t flags = 0; if ((cd->flags & DETECT_CONTENT_ENDS_WITH) && mpm_supports_endswith) flags = MPM_PATTERN_FLAG_ENDSWITH; - PopulateMpmHelperAddPattern( - ms->mpm_ctx, cd, s, flags, (cd->flags & DETECT_CONTENT_FAST_PATTERN_CHOP)); + PopulateMpmHelperAddPattern(ms->mpm_ctx, cd, s, flags, + (cd->flags & DETECT_CONTENT_FAST_PATTERN_CHOP) != 0); } } }