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