summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_refreshes_reveal.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-20 14:31:10 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-20 14:31:10 +0200
commit360382192f2465c66bf61d6100ccc5d9038f57a7 (patch)
tree30495aa2767c5588d28bec6caa274cb4be8ace31 /src/exchange/taler-exchange-httpd_refreshes_reveal.c
parentec2d596b46d1e569d22e56bfcfd7a1f9da29fc0d (diff)
downloadexchange-360382192f2465c66bf61d6100ccc5d9038f57a7.tar.gz
exchange-360382192f2465c66bf61d6100ccc5d9038f57a7.tar.bz2
exchange-360382192f2465c66bf61d6100ccc5d9038f57a7.zip
-fix initialization issue
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refreshes_reveal.c')
-rw-r--r--src/exchange/taler-exchange-httpd_refreshes_reveal.c14
1 files changed, 7 insertions, 7 deletions
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; i<num_fresh_coins; i++)
@@ -531,13 +538,6 @@ resolve_refreshes_reveal_denominations (
&ret);
if (NULL == dks[i])
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) &&
(rctx->no_rms) )
{