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.
pull/1842/head
Alexander Gozman 10 years ago committed by Victor Julien
parent 20dd593981
commit 368d7e913a

@ -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();

Loading…
Cancel
Save