From: Victor Julien Date: Wed, 15 Jul 2020 07:22:12 +0000 (+0200) Subject: detect/mpm: fix hs check X-Git-Tag: suricata-6.0.0-beta1~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5188%2Fhead;p=thirdparty%2Fsuricata.git detect/mpm: fix hs check --- diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index dd5314fffc..ee3acb06f6 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -638,14 +638,14 @@ uint16_t PatternMatchDefaultMatcher(void) goto done; } } - } #ifndef BUILD_HYPERSCAN - if ((strcmp(mpm_algo, "hs") == 0)) { - FatalError(SC_ERR_INVALID_VALUE, "Hyperscan (hs) support for mpm-algo is " - "not compiled into Suricata."); - } + if ((strcmp(mpm_algo, "hs") == 0)) { + FatalError(SC_ERR_INVALID_VALUE, "Hyperscan (hs) support for mpm-algo is " + "not compiled into Suricata."); + } #endif + } FatalError(SC_ERR_INVALID_YAML_CONF_ENTRY, "Invalid mpm algo supplied " "in the yaml conf file: \"%s\"", mpm_algo); }