From: Victor Julien Date: Tue, 28 Nov 2023 13:17:19 +0000 (+0100) Subject: mpm/ac-bs: add warning if still used X-Git-Tag: suricata-8.0.0-beta1~2011 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b21b543a26116eb6b5e6cfa7b22fa8b828e3967;p=thirdparty%2Fsuricata.git mpm/ac-bs: add warning if still used Fall back to default matcher. Ticket #6586. --- diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 48c4da115a..849930a7a9 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -854,6 +854,9 @@ uint8_t PatternMatchDefaultMatcher(void) #endif if (strcmp("auto", mpm_algo) == 0) { goto done; + } else if (strcmp("ac-bs", mpm_algo) == 0) { + SCLogWarning("mpm-algo \"ac-bs\" has been removed. See ticket #6586."); + goto done; } for (uint8_t u = 0; u < MPM_TABLE_SIZE; u++) { if (mpm_table[u].name == NULL)