fix json parsing invocation

This commit is contained in:
Christian Grothoff 2021-03-28 21:52:02 +02:00
parent 71f00b3764
commit ec0b1b512c
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 880352a419beee4864f863182dbc695c859ee3f7
Subproject commit 65b32359b300f5369eff62fceb5001e609c2f339

View File

@ -615,8 +615,9 @@ TALER_JSON_get_error_code2 (const void *data,
enum TALER_ErrorCode ec;
json_error_t err;
json = json_loads (data,
json = json_loadb (data,
data_size,
JSON_REJECT_DUPLICATES,
&err);
if (NULL == json)
return TALER_EC_INVALID;