diff --git a/src/exchange/taler-exchange-httpd_purses_deposit.c b/src/exchange/taler-exchange-httpd_purses_deposit.c index 45d0c6f7f..b7182e0cf 100644 --- a/src/exchange/taler-exchange-httpd_purses_deposit.c +++ b/src/exchange/taler-exchange-httpd_purses_deposit.c @@ -197,6 +197,7 @@ deposit_transaction (void *cls, struct PurseDepositContext *pcc = cls; enum GNUNET_DB_QueryStatus qs; + qs = GNUNET_DB_STATUS_SUCCESS_NO_RESULTS; for (unsigned int i = 0; inum_coins; i++) { struct Coin *coin = &pcc->coins[i]; diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c index 0c1701bb2..9fd9eac46 100644 --- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c +++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c @@ -507,6 +507,13 @@ resolve_refreshes_reveal_denominations ( } } + old_dk = TEH_keys_denomination_by_hash2 ( + ksh, + &rctx->melt.session.coin.denom_pub_hash, + connection, + &ret); + if (NULL == old_dk) + return ret; /* Parse denomination key hashes */ for (unsigned int i = 0; imelt.session.coin. - denom_pub_hash, - connection, - &ret); - if (NULL == old_dk) - return ret; if ( (TALER_DENOMINATION_CS == dks[i]->denom_pub.cipher) && (rctx->no_rms) ) {