resolve BUGFIX identity name parsing return value check
diff --git a/src/resolve.c b/src/resolve.c
index 6d9cb79..1ddfab0 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -3333,9 +3333,12 @@
}
rc = parse_node_identifier(ident_name, &mod_name, &mod_name_len, &name, NULL);
- if (rc < (signed)strlen(ident_name)) {
+ if (rc < 1) {
LOGVAL(LYE_INCHAR, line, LY_VLOG_LYD, node, ident_name[-rc], &ident_name[-rc]);
return NULL;
+ } else if (rc < (signed)strlen(ident_name)) {
+ LOGVAL(LYE_INCHAR, line, LY_VLOG_LYD, node, ident_name[rc], &ident_name[rc]);
+ return NULL;
}
if (!strcmp(base->name, name) && (!mod_name