commit | c8806c85624bda21360963c3a508993ed1e3d0f7 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Dec 06 10:31:24 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Dec 06 10:31:24 2022 +0100 |
tree | 4e1c0417a79923b874441b9b28bc455ce18fba71 | |
parent | aa51cc52e42a1fc2692c5b41047d383a160d35f6 [diff] [blame] |
tree schema BUGFIX resolve parsed exts for main module only Submodules may reference the main module and need to wait for it to be fully parsed before resolving. Fixes #1943
diff --git a/src/parser_yin.c b/src/parser_yin.c index 582befb..6b5ff77 100644 --- a/src/parser_yin.c +++ b/src/parser_yin.c
@@ -646,7 +646,7 @@ return LY_SUCCESS; } - return ly_set_add(&ctx->ext_inst, exts, 1, NULL); + return ly_set_add(&ctx->main_ctx->ext_inst, exts, 1, NULL); } /**