-fix initialization issue

This commit is contained in:
Christian Grothoff 2022-06-20 14:31:10 +02:00
parent ec2d596b46
commit 360382192f
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 8 additions and 7 deletions

View File

@ -197,6 +197,7 @@ deposit_transaction (void *cls,
struct PurseDepositContext *pcc = cls; struct PurseDepositContext *pcc = cls;
enum GNUNET_DB_QueryStatus qs; enum GNUNET_DB_QueryStatus qs;
qs = GNUNET_DB_STATUS_SUCCESS_NO_RESULTS;
for (unsigned int i = 0; i<pcc->num_coins; i++) for (unsigned int i = 0; i<pcc->num_coins; i++)
{ {
struct Coin *coin = &pcc->coins[i]; struct Coin *coin = &pcc->coins[i];

View File

@ -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 */ /* Parse denomination key hashes */
for (unsigned int i = 0; i<num_fresh_coins; i++) for (unsigned int i = 0; i<num_fresh_coins; i++)
@ -531,13 +538,6 @@ resolve_refreshes_reveal_denominations (
&ret); &ret);
if (NULL == dks[i]) if (NULL == dks[i])
return ret; return ret;
old_dk = TEH_keys_denomination_by_hash2 (ksh,
&rctx->melt.session.coin.
denom_pub_hash,
connection,
&ret);
if (NULL == old_dk)
return ret;
if ( (TALER_DENOMINATION_CS == dks[i]->denom_pub.cipher) && if ( (TALER_DENOMINATION_CS == dks[i]->denom_pub.cipher) &&
(rctx->no_rms) ) (rctx->no_rms) )
{ {