From: Alexander Gozman Date: Thu, 4 Feb 2016 12:33:23 +0000 (+0300) Subject: In configuration test mode, check signatures if 'delayed-detect' is enabled X-Git-Tag: suricata-3.0.1RC1~168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=368d7e913a9a71d877befce3e5bbc847b7917b90;p=thirdparty%2Fsuricata.git 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. --- 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();