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
pull/13683/head
Philippe Antoine 9 months ago committed by Jason Ish
parent 1030e4fa92
commit 9545eab4c8

@ -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) {

Loading…
Cancel
Save