tree data UPDATE forbid unlinking list keys
diff --git a/src/validation.c b/src/validation.c
index e15ff63..35136ad 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -2046,7 +2046,7 @@
op_sibling_after = op_subtree->next;
op_parent = lyd_parent(op_subtree);
- lyd_unlink_tree(op_subtree);
+ lyd_unlink(op_subtree);
lyd_insert_node(tree_parent, &tree_sibling, op_subtree, 0);
if (!dep_tree) {
dep_tree = tree_sibling;
@@ -2088,7 +2088,7 @@
cleanup:
/* restore operation tree */
- lyd_unlink_tree(op_subtree);
+ lyd_unlink(op_subtree);
if (op_sibling_before) {
lyd_insert_after_node(op_sibling_before, op_subtree);
lyd_insert_hash(op_subtree);