From: Philippe Antoine Date: Fri, 18 Jul 2025 13:51:37 +0000 (+0200) Subject: conf/output: friendly error message on bad configuration X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9545eab4c8e6bf5ba17129eae78fb4bed31f5915;p=thirdparty%2Fsuricata.git conf/output: friendly error message on bad configuration Ticket: 7611 Instead of segfault output.types expects a sequence of one-key mappings, instead of directly a mapping --- diff --git a/src/runmodes.c b/src/runmodes.c index 800365f8e5..05c5e925ef 100644 --- a/src/runmodes.c +++ b/src/runmodes.c @@ -669,6 +669,9 @@ static void RunModeInitializeEveOutput( if (types == NULL) { return; } + if (!SCConfNodeIsSequence(types)) { + FatalError("output types should be a sequence"); + } SCConfNode *type = NULL; TAILQ_FOREACH(type, &types->head, next) {