From 2f715c27f82584cb65855785144877da628fe35c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 6 Oct 2017 20:02:28 +0200 Subject: check return value from TALER_JSON_hash --- src/json/json.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/json') 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, -- cgit v1.2.3