Skip to content

Commit 27ddeeb

Browse files
committed
context BUGFIX unexpected context node
Fixes #2457
1 parent 23a262c commit 27ddeeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ ly_ctx_new_yl_legacy(struct ly_ctx *ctx, const struct lyd_node *yltree)
370370
LY_ERR ret = LY_SUCCESS;
371371
uint32_t i, j;
372372

373-
LY_CHECK_RET(ret = lyd_find_xpath(yltree, "modules-state/module", &set));
373+
LY_CHECK_RET(ret = lyd_find_xpath(yltree, "/ietf-yang-library:modules-state/module", &set));
374374

375375
if (!set->count) {
376376
ret = LY_ENOTFOUND;

0 commit comments

Comments
 (0)