summaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-06 20:02:28 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-06 20:02:28 +0200
commit2f715c27f82584cb65855785144877da628fe35c (patch)
treeaf92de489ba87850dabcac30fe56a9e8640eb4ee /src/json
parent1da03b95eb8e13f0e4ebaa79d2096a89b34cb1b2 (diff)
downloadexchange-2f715c27f82584cb65855785144877da628fe35c.tar.gz
exchange-2f715c27f82584cb65855785144877da628fe35c.tar.bz2
exchange-2f715c27f82584cb65855785144877da628fe35c.zip
check return value from TALER_JSON_hash
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/json/json.c b/src/json/json.c
index 74559e6c..adcc2314 100644
--- a/src/json/json.c
+++ b/src/json/json.c
@@ -40,7 +40,10 @@ TALER_JSON_hash (const json_t *json,
if (NULL == (wire_enc = json_dumps (json,
JSON_COMPACT | JSON_SORT_KEYS)))
+ {
+ GNUNET_break (0);
return GNUNET_SYSERR;
+ }
len = strlen (wire_enc) + 1;
GNUNET_CRYPTO_hash (wire_enc,
len,