commit | ef9646741520f47f764fc762490c4559fd78892d | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Jan 03 11:13:25 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Jan 03 11:17:07 2022 +0100 |
tree | 25eb91756b5e408549cb50ffa4c35d7fa8dd33ca | |
parent | dcff0f5b3aaf4e4f1ec19d3bb35541d086eb3b2f [diff] |
parser json BUGFIX do not open next element on data skip
diff --git a/src/parser_json.c b/src/parser_json.c index 66e58ed..146b37a 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -304,9 +304,7 @@ } else if ((status == LYJSON_OBJECT) && (current == LYJSON_OBJECT_CLOSED)) { sublevels--; } - } while (current != status + 1 || sublevels); - /* open the next sibling */ - LY_CHECK_RET(lyjson_ctx_next(jsonctx, NULL)); + } while ((current != status + 1) || sublevels); return LY_SUCCESS; }