]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
conf: returns instead of exiting in ConfYamlParse
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 15 Apr 2020 09:48:13 +0000 (11:48 +0200)
committerPhilippe Antoine <contact@catenacyber.fr>
Wed, 15 Apr 2020 09:48:13 +0000 (11:48 +0200)
So that we can keep on fuzzing even on too much recursion

src/conf-yaml-loader.c

index 1f9e72af193985411f3b1a2872ec04c0f2bc5bf5..b6f014231d231ab29e48cdcc39b172bf428a9881 100644 (file)
@@ -185,8 +185,9 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq, int rlevel)
     int retval = 0;
 
     if (rlevel++ > RECURSION_LIMIT) {
-        FatalError(SC_ERR_FATAL, "Recursion limit reached while parsing "
+        SCLogError(SC_ERR_CONF_YAML_ERROR, "Recursion limit reached while parsing "
                 "configuration file, aborting.");
+        return -1;
     }
 
     while (!done) {