diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-06 22:19:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-06 22:19:13 +0200 |
commit | 7935349d35611901d42d088f0e6dbd5ec8c47272 (patch) | |
tree | 995665539d1f8dc8768b71a72bb67e4766b6a78d /src/exchangedb | |
parent | c92d88d944aaa845adff8cc2b2dad75e5d8e74d4 (diff) | |
download | exchange-7935349d35611901d42d088f0e6dbd5ec8c47272.tar.xz |
check return value from create_denom_key_pair in test
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 131771bd1..537f33c9a 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -551,6 +551,7 @@ test_melting (struct TALER_EXCHANGEDB_Session *session) &fee_deposit, &fee_refresh, &fee_refund); + GNUNET_assert (NULL != dkp); /* initialize refresh session melt data */ { struct GNUNET_HashCode hc; @@ -633,6 +634,7 @@ test_melting (struct TALER_EXCHANGEDB_Session *session) &fee_deposit, &fee_refresh, &fee_refund); + GNUNET_assert (NULL != new_dkp[cnt]); new_denom_pubs[cnt] = new_dkp[cnt]->pub; } FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != @@ -1117,6 +1119,7 @@ test_gc (struct TALER_EXCHANGEDB_Session *session) &fee_deposit, &fee_refresh, &fee_refund); + GNUNET_assert (NULL != dkp); if (GNUNET_OK != plugin->gc (plugin->cls)) { @@ -1585,6 +1588,7 @@ run (void *cls) &fee_deposit, &fee_refresh, &fee_refund); + GNUNET_assert (NULL != dkp); GNUNET_CRYPTO_rsa_public_key_hash (dkp->pub.rsa_public_key, &dkp_pub_hash); RND_BLK(&cbc.h_coin_envelope); |