]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
In configuration test mode, check signatures if 'delayed-detect' is enabled
authorAlexander Gozman <a.gozman@securitycode.ru>
Thu, 4 Feb 2016 12:33:23 +0000 (15:33 +0300)
committerVictor Julien <victor@inliniac.net>
Mon, 8 Feb 2016 10:50:54 +0000 (11:50 +0100)
When 'detection-engine.delayed-detect' option was set to 'yes',
suricata didn't check signatures validity in configuration test mode.

src/suricata.c

index a6ed5736a5bec0412a6e139aec1acbe366ab4b05..4c18f6a5b130a62e227134f6db78c4aa6f8bcff3 100644 (file)
@@ -2304,7 +2304,8 @@ int main(int argc, char **argv)
                     "detection engine contexts failed.");
             exit(EXIT_FAILURE);
         }
-        if (suri.delayed_detect || (mt_enabled && !default_tenant)) {
+        if ((suri.delayed_detect || (mt_enabled && !default_tenant)) &&
+            (suri.run_mode != RUNMODE_CONF_TEST)) {
             de_ctx = DetectEngineCtxInitMinimal();
         } else {
             de_ctx = DetectEngineCtxInit();