summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-03-28 21:52:02 +0200
committerChristian Grothoff <christian@grothoff.org>2021-03-28 21:52:02 +0200
commitec0b1b512c45b2ea9476e74d996444c92387b116 (patch)
tree523ae56f871b588a4a6698c506e25bd2de6141a0 /src
parent71f00b37648a7237ad7efebd1b3145512f21c02a (diff)
downloadexchange-ec0b1b512c45b2ea9476e74d996444c92387b116.tar.gz
exchange-ec0b1b512c45b2ea9476e74d996444c92387b116.tar.bz2
exchange-ec0b1b512c45b2ea9476e74d996444c92387b116.zip
fix json parsing invocation
Diffstat (limited to 'src')
-rw-r--r--src/json/json.c3
1 files changed, 2 insertions, 1 deletions
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;