yang - CHANGE identity statement due to reading status and base statements
diff --git a/src/parser_yang.c b/src/parser_yang.c
index 64177d9..27bfb31 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -395,9 +395,9 @@
{
const char *exp;
- if (ident->base) {
- LOGVAL(LYE_TOOMANY, line, LY_VLOG_NONE, NULL, "base", "identity");
- return EXIT_FAILURE;
+ if (!value) {
+ /* base statement not found */
+ return EXIT_SUCCESS;
}
exp = transform_schema2json(module, value, line);
free(value);
@@ -409,11 +409,6 @@
return EXIT_FAILURE;
}
- /* hack - store some address due to detection of unresolved base*/
- if (!ident->base) {
- ident->base = (void *)1;
- }
-
lydict_remove(module->ctx, exp);
return EXIT_SUCCESS;
}