]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/mpm: fix hs check 5188/head
authorVictor Julien <victor@inliniac.net>
Wed, 15 Jul 2020 07:22:12 +0000 (09:22 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 15 Jul 2020 07:23:14 +0000 (09:23 +0200)
src/detect-engine-mpm.c

index dd5314fffc3b221f7d81e4aa126f2b619d07877d..ee3acb06f60a66c96ae11633f331a42a33049fdf 100644 (file)
@@ -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);
     }