From ec0b1b512c45b2ea9476e74d996444c92387b116 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 28 Mar 2021 21:52:02 +0200 Subject: fix json parsing invocation --- src/json/json.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/json/json.c') diff --git a/src/json/json.c b/src/json/json.c index b7afec8aa..2adf71187 100644 --- a/src/json/json.c +++ b/src/json/json.c @@ -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; -- cgit v1.2.3