parser BUGFIX two implemented modules fixed
diff --git a/src/parser_yin.c b/src/parser_yin.c
index 2c79bd1..d8eae5a 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -5131,11 +5131,17 @@
if (module->augment_size || module->deviation_size) {
LOGVRB("Module \"%s\" includes augments or deviations, changing conformance to \"implement\".", module->name);
- module->implemented = 1;
+ if (lys_module_set_implement(module)) {
+ goto error;
+ }
- lys_sub_module_set_dev_aug_target_implement(module);
+ if (lys_sub_module_set_dev_aug_target_implement(module)) {
+ goto error;
+ }
for (i = 0; i < module->inc_size; ++i) {
- lys_sub_module_set_dev_aug_target_implement((struct lys_module *)module->inc[i].submodule);
+ if (lys_sub_module_set_dev_aug_target_implement((struct lys_module *)module->inc[i].submodule)) {
+ goto error;
+ }
}
}