commit | 1241ebc2575bf5648338a55f9e2e7e00e4c74adc | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Apr 04 10:03:45 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Apr 04 10:03:45 2023 +0200 |
tree | d10176d5442e554463b2a9d60339f038522e835d | |
parent | e0a8ce7d5c446b66ae6894b798f25381818eff26 [diff] [blame] |
parser json BUGFIX proper skip of invalid data
diff --git a/src/parser_json.c b/src/parser_json.c index 0c262c6..6f25ebb 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -1558,6 +1558,8 @@ if ((r = lydjson_data_skip(lydctx->jsonctx))) { rc = r; } + r = lyjson_ctx_next(lydctx->jsonctx, &status); + LY_CHECK_ERR_GOTO(r, rc = r, cleanup); goto cleanup; } else if (r) { /* error */