mpm/ac-bs: add warning if still used

Fall back to default matcher.

Ticket #6586.
pull/9939/head
Victor Julien 2 years ago committed by Victor Julien
parent 2be36c0f0c
commit 0b21b543a2

@ -854,6 +854,9 @@ uint8_t PatternMatchDefaultMatcher(void)
#endif #endif
if (strcmp("auto", mpm_algo) == 0) { if (strcmp("auto", mpm_algo) == 0) {
goto done; 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++) { for (uint8_t u = 0; u < MPM_TABLE_SIZE; u++) {
if (mpm_table[u].name == NULL) if (mpm_table[u].name == NULL)

Loading…
Cancel
Save