Skip to content

Commit

Permalink
context BUGFIX removing augs/devs
Browse files Browse the repository at this point in the history
Always remove applied deviations/augments
in reverse order they were originally applied.

Fixes #462
  • Loading branch information
michalvasko committed Mar 19, 2018
1 parent 660582a commit adafded
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,8 @@ lys_set_disabled(const struct lys_module *module)
ctx_modules_undo_backlinks(ctx, mods);

/* remove the applied deviations and augments */
for (u = 0; u < mods->number; u++) {
u = mods->number;
while (u--) {
lys_sub_module_remove_devs_augs((struct lys_module *)mods->set.g[u]);
}

Expand Down

0 comments on commit adafded

Please sign in to comment.