From f346b3fc302809408208bfc958f052676e797087 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 23 May 2023 14:06:26 +0200 Subject: [PATCH] debug: fix list-x command line options with debug Debug validation checks that engine is either IPS or IDS. But listing keywords does not care. So, setting ids mode Ticket: #6089 --- src/util-running-modes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util-running-modes.c b/src/util-running-modes.c index a88885c0a2..dd50c85ab4 100644 --- a/src/util-running-modes.c +++ b/src/util-running-modes.c @@ -31,6 +31,7 @@ int ListKeywords(const char *keyword_info) { + EngineModeSetIDS(); SCLogLoadConfig(0, 0, 0, 0); MpmTableSetup(); SpmTableSetup(); @@ -41,6 +42,7 @@ int ListKeywords(const char *keyword_info) int ListAppLayerProtocols(const char *conf_filename) { + EngineModeSetIDS(); if (ConfYamlLoadFile(conf_filename) != -1) SCLogLoadConfig(0, 0, 0, 0); MpmTableSetup();