]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mpm/ac-bs: add warning if still used
authorVictor Julien <vjulien@oisf.net>
Tue, 28 Nov 2023 13:17:19 +0000 (14:17 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 1 Dec 2023 13:55:41 +0000 (14:55 +0100)
Fall back to default matcher.

Ticket #6586.

src/detect-engine-mpm.c

index 48c4da115a455c7740aa30d0d0537188bdb4b090..849930a7a9cfc1fd99a80fe88bc4109b914bc818 100644 (file)
@@ -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)