Skip to content

Commit 3eba843

Browse files
committed
tree data BUGFIX handle diff of schema-mount data
1 parent 79dcef1 commit 3eba843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree_data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3157,7 +3157,7 @@ lyd_find_sibling_first(const struct lyd_node *siblings, const struct lyd_node *t
31573157

31583158
if (LYD_CTX(siblings) != LYD_CTX(target)) {
31593159
/* create a duplicate in this context */
3160-
LY_CHECK_RET(lyd_dup_single_to_ctx(target, LYD_CTX(siblings), NULL, 0, &dup));
3160+
LY_CHECK_RET(lyd_dup_single_to_ctx(target, lyd_dup_get_top_ctx(siblings), NULL, 0, &dup));
31613161
target = dup;
31623162
}
31633163

0 commit comments

Comments
 (0)