data tree REFACTOR data DFS should match schema DFS
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index 65fdb19..fc74236 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -1199,11 +1199,11 @@
}
/* find request OP */
- LYD_TREE_DFS_BEGIN((struct lyd_node *)request, iter, req_op) {
+ LYD_TREE_DFS_BEGIN((struct lyd_node *)request, req_op) {
if (req_op->schema->nodetype & (LYS_RPC | LYS_ACTION)) {
break;
}
- LYD_TREE_DFS_END(request, iter, req_op);
+ LYD_TREE_DFS_END(request, req_op);
}
if (!(req_op->schema->nodetype & (LYS_RPC | LYS_ACTION))) {
LOGERR(LYD_NODE_CTX(request), LY_EINVAL, "No RPC/action in the request found.");