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
pull/8965/head
Philippe Antoine 3 years ago committed by Victor Julien
parent 11c3aa868d
commit f346b3fc30

@ -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();

Loading…
Cancel
Save