commit | f7fe2cbcbbd2b2996c9b38d8a61e405d2a11eb21 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Wed Aug 09 10:27:12 2017 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Wed Aug 09 10:27:12 2017 +0200 |
tree | 7470e61ca6d056d2200a6f98c3d7208712865a0c | |
parent | 489a156c626f4518df971bd5e0dd6645f7af80ca [diff] [blame] |
schema tree BUGFIX lys_child() on leaf/leaflist Fixes #341
diff --git a/src/tree_schema.c b/src/tree_schema.c index 9ceec0f..de4f22b 100644 --- a/src/tree_schema.c +++ b/src/tree_schema.c
@@ -3723,6 +3723,8 @@ return NULL; } return (struct lys_node **)pp; + } else if (node->nodetype & (LYS_LEAF | LYS_LEAFLIST)) { + return NULL; } else { return (struct lys_node **)&node->child; }