detect/mpm: fix hs check

pull/5188/head
Victor Julien 5 years ago
parent 6cbb4d4909
commit 9831839388

@ -638,14 +638,14 @@ uint16_t PatternMatchDefaultMatcher(void)
goto done; goto done;
} }
} }
}
#ifndef BUILD_HYPERSCAN #ifndef BUILD_HYPERSCAN
if ((strcmp(mpm_algo, "hs") == 0)) { if ((strcmp(mpm_algo, "hs") == 0)) {
FatalError(SC_ERR_INVALID_VALUE, "Hyperscan (hs) support for mpm-algo is " FatalError(SC_ERR_INVALID_VALUE, "Hyperscan (hs) support for mpm-algo is "
"not compiled into Suricata."); "not compiled into Suricata.");
} }
#endif #endif
}
FatalError(SC_ERR_INVALID_YAML_CONF_ENTRY, "Invalid mpm algo supplied " FatalError(SC_ERR_INVALID_YAML_CONF_ENTRY, "Invalid mpm algo supplied "
"in the yaml conf file: \"%s\"", mpm_algo); "in the yaml conf file: \"%s\"", mpm_algo);
} }

Loading…
Cancel
Save