util-running-mode: setup config file

Without that we get warning message.
pull/1435/head
Eric Leblond 11 years ago committed by Victor Julien
parent 6f5c4c12e1
commit f35001a614

@ -27,9 +27,13 @@
#include "app-layer-parser.h" #include "app-layer-parser.h"
#include "util-cuda.h" #include "util-cuda.h"
#include "util-unittest.h" #include "util-unittest.h"
#include "util-debug.h"
#include "conf-yaml-loader.h"
int ListKeywords(const char *keyword_info) int ListKeywords(const char *keyword_info)
{ {
if (ConfYamlLoadFile(DEFAULT_CONF_FILE) != -1)
SCLogLoadConfig(0, 0);
MpmTableSetup(); MpmTableSetup();
AppLayerSetup(); AppLayerSetup();
SigTableSetup(); /* load the rule keywords */ SigTableSetup(); /* load the rule keywords */
@ -39,6 +43,8 @@ int ListKeywords(const char *keyword_info)
int ListAppLayerProtocols() int ListAppLayerProtocols()
{ {
if (ConfYamlLoadFile(DEFAULT_CONF_FILE) != -1)
SCLogLoadConfig(0, 0);
MpmTableSetup(); MpmTableSetup();
AppLayerSetup(); AppLayerSetup();
AppLayerListSupportedProtocols(); AppLayerListSupportedProtocols();

Loading…
Cancel
Save