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/exchangedb/test_exchangedb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/exchangedb/test_exchangedb.c') diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 6b8957718..131771bd1 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -932,7 +932,9 @@ deposit_cb (void *cls, deposit_rowid = rowid; if (NULL != wire) - TALER_JSON_hash (wire, &h_wire); + GNUNET_assert (GNUNET_OK == + TALER_JSON_hash (wire, + &h_wire)); if ( (0 != memcmp (merchant_pub, &deposit->merchant_pub, sizeof (struct TALER_MerchantPublicKeyP))) || @@ -1776,8 +1778,9 @@ run (void *cls) RND_BLK (&deposit.merchant_pub); RND_BLK (&deposit.h_contract_terms); wire = json_loads (json_wire_str, 0, NULL); - TALER_JSON_hash (wire, - &deposit.h_wire); + GNUNET_assert (GNUNET_OK == + TALER_JSON_hash (wire, + &deposit.h_wire)); deposit.receiver_wire_account = wire; deposit.amount_with_fee = value; deposit.deposit_fee = fee_deposit; -- cgit v1.2.3