From 368d7e913a9a71d877befce3e5bbc847b7917b90 Mon Sep 17 00:00:00 2001 From: Alexander Gozman Date: Thu, 4 Feb 2016 15:33:23 +0300 Subject: [PATCH] In configuration test mode, check signatures if 'delayed-detect' is enabled When 'detection-engine.delayed-detect' option was set to 'yes', suricata didn't check signatures validity in configuration test mode. --- src/suricata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/suricata.c b/src/suricata.c index a6ed5736a5..4c18f6a5b1 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -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();