Skip to content

Commit b209190

Browse files
committed
schema parsers BUGFIX resolving groupings in submodules
instead of searching for the grouping from the uses statement up through the tree, the search directly started in the module's top-level and only the global groupings were checked.
1 parent 4015d0d commit b209190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolve.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ resolve_uses_schema_nodeid(const char *nodeid, const struct lys_node *start, con
18681868
if (!module) {
18691869
return -1;
18701870
}
1871-
if (module != start->module) {
1871+
if (module != lys_main_module(start->module)) {
18721872
start = module->data;
18731873
}
18741874

0 commit comments

Comments
 (0)