From 98318393888909293edcfc22f0158de4350182f7 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 15 Jul 2020 09:22:12 +0200 Subject: [PATCH] detect/mpm: fix hs check --- src/detect-engine-mpm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } -- 2.47.2