commit | 18a844efa45d9e8f4a8a70e3b970becb633b8665 | [log] [tgz] |
---|---|---|
author | aPiecek <piecek@cesnet.cz> | Tue Aug 10 11:06:24 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Aug 23 12:31:11 2021 +0200 |
tree | 435dfa9742d7422cbfdc9078bb7954f526276f01 | |
parent | 088bafdda45b0b7ca9929e40342a54354b4fae55 [diff] [blame] |
validation BUGFIX in ::lyd_validate_subtree() Infinite loop due to opaq node that should be skipped.
diff --git a/src/validation.c b/src/validation.c index d999a3f..6063c15 100644 --- a/src/validation.c +++ b/src/validation.c
@@ -1460,7 +1460,7 @@ LYD_TREE_DFS_BEGIN(root, node) { if (!node->schema) { - continue; + goto next_node; } LY_LIST_FOR(node->meta, meta) { @@ -1487,6 +1487,7 @@ } LY_CHECK_RET(lysc_node_ext_tovalidate(node_exts, node)); +next_node: LYD_TREE_DFS_END(root, node); }