diff --git a/src/suricata.c b/src/suricata.c index 1d71725ac0..d1c4d93a9b 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1205,7 +1205,8 @@ int main(int argc, char **argv) if (run_mode != RUNMODE_UNITTEST && !list_keywords && !list_app_layer_protocols) { - conf_filename = DEFAULT_CONF_FILE; + if (conf_filename == NULL) + conf_filename = DEFAULT_CONF_FILE; } /** \todo we need an api for these */