commit | 79856c474d631788caaa9e777220b64637a6cfe1 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Nov 19 11:44:08 2020 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Nov 19 11:44:08 2020 +0100 |
tree | 08ed51f489a428a4f5ca06903d30a3e71187222e | |
parent | fb6c9ddf285dfb898bd867d3045d1d06a73f1cb8 [diff] |
JSON data parser BUGFIX skipping multilevel unknown data Fixes #1285
diff --git a/src/parser_json.c b/src/parser_json.c index a8ce252..be2aa30 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -272,7 +272,7 @@ } else if (current == status + 1) { sublevels--; } - } while (current != status + 1 && sublevels); + } while (current != status + 1 || sublevels); /* open the next sibling */ LY_CHECK_RET(lyjson_ctx_next(jsonctx, NULL));