]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
conf - process includes even if not at root node.
authorJason Ish <ish@unx.ca>
Mon, 11 May 2015 22:50:19 +0000 (16:50 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 19 May 2015 15:36:57 +0000 (17:36 +0200)
src/conf-yaml-loader.c

index d61e495ce1920b3f7374160dbec253dca1c34bb9..13ec048845716dac07195f0563abfb1fa0529555 100644 (file)
@@ -244,9 +244,7 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq)
                 }
                 else if (state == CONF_KEY) {
 
-                    /* Top level include statements. */
-                    if ((strcmp(value, "include") == 0) &&
-                        (parent == ConfGetRootNode())) {
+                    if (strcmp(value, "include") == 0) {
                         state = CONF_INCLUDE;
                         goto next;
                     }