diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-06 20:02:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-06 20:02:28 +0200 |
commit | 2f715c27f82584cb65855785144877da628fe35c (patch) | |
tree | af92de489ba87850dabcac30fe56a9e8640eb4ee /src/json | |
parent | 1da03b95eb8e13f0e4ebaa79d2096a89b34cb1b2 (diff) | |
download | exchange-2f715c27f82584cb65855785144877da628fe35c.tar.xz |
check return value from TALER_JSON_hash
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/json.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/json/json.c b/src/json/json.c index 74559e6c5..adcc2314a 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, |