From b210bf129025486f28ebec5e13d7c37dbb814d4c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 11 Jun 2012 22:46:25 +0200 Subject: [PATCH] Fix commandline supplied yaml path being ignored. --- src/suricata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */