[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -fix initialization issue
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -fix initialization issue |
Date: |
Mon, 20 Jun 2022 14:31:12 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 36038219 -fix initialization issue
36038219 is described below
commit 360382192f2465c66bf61d6100ccc5d9038f57a7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jun 20 14:31:10 2022 +0200
-fix initialization issue
---
src/exchange/taler-exchange-httpd_purses_deposit.c | 1 +
src/exchange/taler-exchange-httpd_refreshes_reveal.c | 14 +++++++-------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_purses_deposit.c
b/src/exchange/taler-exchange-httpd_purses_deposit.c
index 45d0c6f7..b7182e0c 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; i<pcc->num_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 0c1701bb..9fd9eac4 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) )
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.