Skip to content

Commit e6db6c6

Browse files
committed
schema parsers BUGFIX dereferencing invalid pointer
1 parent e04714b commit e6db6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree_schema.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ lys_find_grouping_up(const char *name, struct lys_node *start)
393393
for (par_iter = start; par_iter; par_iter = par_iter->parent) {
394394
/* top-level augment, look into module (uses augment is handled correctly below) */
395395
if (par_iter->parent && !par_iter->parent->parent && (par_iter->parent->nodetype == LYS_AUGMENT)) {
396-
par_iter = par_iter->parent->module->data;
396+
par_iter = lys_main_module(par_iter->parent->module)->data;
397397
if (!par_iter) {
398398
break;
399399
}

0 commit comments

Comments
 (0)