lyb BUGFIX handle correctly anydata datatree
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index 482107f..4987913 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -302,9 +302,9 @@
/* read anydata content */
if (any->value_type == LYD_ANYDATA_DATATREE) {
- any->value.tree = lyd_parse_lyb(node->schema->module->ctx, data, 0, NULL, NULL, &r);
- ret += r;
- LYB_HAVE_READ_RETURN(r, data, -1);
+ /* invalid situation */
+ LOGINT(node->schema->module->ctx);
+ return -1;
} else if (any->value_type == LYD_ANYDATA_LYB) {
ret += (r = lyb_read_string(data, &any->value.mem, 0, lybs));
LYB_HAVE_READ_RETURN(r, data, -1);