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;