commit | a32b6b7df5e26ebb59ae5960dc3442aae2956edb | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Jul 11 15:55:56 2022 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Jul 11 15:55:56 2022 +0200 |
tree | 211c07b4b46c6bb33112b909b71d094e91adb754 | |
parent | 0ebc95fa304fa9cadb1fe6acaa0a04e036e650d3 [diff] |
parser json BUGFIX check error return
diff --git a/src/parser_json.c b/src/parser_json.c index 06be6fc..4babe34 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -1424,6 +1424,9 @@ } else if (snode->nodetype == LYS_LEAFLIST) { ((struct lyd_node_opaq *)*node)->hints |= LYD_NODEHINT_LEAFLIST; } + } else { + /* error */ + return ret; } return LY_SUCCESS;