commit | 54d4c20f6c7920850ef5725edca4f4aec2b71beb | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Aug 09 14:09:18 2017 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Aug 09 14:09:18 2017 +0200 |
tree | d6fb3667892a1b959fc3a76849e85ed8e97f1993 | |
parent | d97abda3ea8aba40c7ce34df872be449250ba9bc [diff] [blame] |
fixup! schema tree BUGFIX lys_child() on leaf/leaflist
diff --git a/src/tree_schema.c b/src/tree_schema.c index fb14d45..2dc0d73 100644 --- a/src/tree_schema.c +++ b/src/tree_schema.c
@@ -3725,7 +3725,7 @@ return NULL; } return (struct lys_node **)pp; - } else if (node->nodetype & (LYS_LEAF | LYS_LEAFLIST)) { + } else if (node->nodetype & (LYS_LEAF | LYS_LEAFLIST | LYS_ANYDATA)) { return NULL; } else { return (struct lys_node **)&node->child;