From: Eric Leblond Date: Tue, 27 Jan 2015 20:22:29 +0000 (+0100) Subject: util-running-mode: setup config file X-Git-Tag: suricata-2.1beta4~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f35001a614c92e90c6bdee82cce5be80178cd237;p=thirdparty%2Fsuricata.git util-running-mode: setup config file Without that we get warning message. --- diff --git a/src/util-running-modes.c b/src/util-running-modes.c index 07aeffef5f..8ad5a1eea8 100644 --- a/src/util-running-modes.c +++ b/src/util-running-modes.c @@ -27,9 +27,13 @@ #include "app-layer-parser.h" #include "util-cuda.h" #include "util-unittest.h" +#include "util-debug.h" +#include "conf-yaml-loader.h" int ListKeywords(const char *keyword_info) { + if (ConfYamlLoadFile(DEFAULT_CONF_FILE) != -1) + SCLogLoadConfig(0, 0); MpmTableSetup(); AppLayerSetup(); SigTableSetup(); /* load the rule keywords */ @@ -39,6 +43,8 @@ int ListKeywords(const char *keyword_info) int ListAppLayerProtocols() { + if (ConfYamlLoadFile(DEFAULT_CONF_FILE) != -1) + SCLogLoadConfig(0, 0); MpmTableSetup(); AppLayerSetup(); AppLayerListSupportedProtocols();