commit | 7a8b24799901bfc19d4782fe321c03d2766a9eed | [log] [tgz] |
---|---|---|
author | David Sedlák <xsedla1d@stud.fit.vutbr.cz> | Thu Jul 11 15:08:34 2019 +0200 |
committer | David Sedlák <xsedla1d@stud.fit.vutbr.cz> | Thu Jul 11 15:08:34 2019 +0200 |
tree | 62a9dbb4407102d243eb336fb22f028e8a1f38f4 | |
parent | 66d7c84104e489aeb715c8b16af5a9c7b71f3d92 [diff] [blame] |
yang parser BUGFIX incorrect return value
diff --git a/src/parser_yang.c b/src/parser_yang.c index 67b5ab9..237edf9 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c
@@ -2089,7 +2089,7 @@ return LY_EVALID; } type->range = calloc(1, sizeof *type->range); - LY_CHECK_ERR_RET(!type->range, LOGMEM(ctx->ctx), LY_EVALID); + LY_CHECK_ERR_RET(!type->range, LOGMEM(ctx->ctx), LY_EMEM); LY_CHECK_RET(parse_restr(ctx, data, kw, type->range)); type->flags |= LYS_SET_RANGE;