commit | d2f404f4ca871f8360a18a6964f2e174d32535e4 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Nov 04 15:37:11 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Nov 04 15:37:11 2021 +0100 |
tree | c4c991ef706d702b76e472d8460d5068239352d2 | |
parent | 824d083902106977a07eea64b56aa9c1b15be4a1 [diff] |
tree data helpers BUGFIX move iterator Refs #1726
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c index 97db00f..714b1fd 100644 --- a/src/tree_data_helpers.c +++ b/src/tree_data_helpers.c
@@ -592,6 +592,9 @@ /* get schema node */ schema = lys_find_child(schema, mod ? mod : schema->module, LYD_NAME(iter), 0, 0, 0); } + + /* remember to move to the descendant */ + prev_iter = iter; } while (schema && (iter != node)); return schema;