From 33e4cc065f31706b481441fcd1b28526a3374f7b Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 10 Feb 2014 14:47:43 -0600 Subject: [PATCH] Promote nodes set with --set to sequence nodes as needed. A node isn't known to be a sequence node until the YAML is parsed. If a node sequence node was set on the command line, promote it to a sequence node when it is discovered by YAML to be a sequence node. Fixes comment #18 in issue 921. --- src/conf-yaml-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf-yaml-loader.c b/src/conf-yaml-loader.c index 500e3de6f4..8e87307943 100644 --- a/src/conf-yaml-loader.c +++ b/src/conf-yaml-loader.c @@ -340,8 +340,8 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq) SCFree(seq_node); return -1; } - seq_node->is_seq = 1; } + seq_node->is_seq = 1; TAILQ_INSERT_TAIL(&node->head, seq_node, next); if (ConfYamlParse(parser, seq_node, 0) != 0) goto fail; -- 2.47.2