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/exchangedb | |
parent | 1da03b95eb8e13f0e4ebaa79d2096a89b34cb1b2 (diff) | |
download | exchange-2f715c27f82584cb65855785144877da628fe35c.tar.xz |
check return value from TALER_JSON_hash
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 9 |
1 files changed, 6 insertions, 3 deletions
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; |