exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit a2e6adcd69000994a579223d97867c4aee4f04f2
parent 06702d9de3d7b1abd34a8aa619a1195e764a0a8b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  7 Mar 2024 10:47:13 +0100

fix uninitialized 'in_shutdown' variable

Diffstat:
Msrc/bank-lib/fakebank_twg_history.c | 2++
Msrc/exchange/taler-exchange-httpd_kyc-proof.c | 1+
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/bank-lib/fakebank_twg_history.c b/src/bank-lib/fakebank_twg_history.c @@ -148,6 +148,7 @@ TALER_FAKEBANK_twg_get_debit_history_ ( (0 < hc->ha.delta)) { acc_payto_uri = hc->acc->payto_uri; + in_shutdown = h->in_shutdown; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); if (overflow) @@ -162,6 +163,7 @@ TALER_FAKEBANK_twg_get_debit_history_ ( if (h->in_shutdown) { acc_payto_uri = hc->acc->payto_uri; + in_shutdown = h->in_shutdown; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); goto finish; diff --git a/src/exchange/taler-exchange-httpd_kyc-proof.c b/src/exchange/taler-exchange-httpd_kyc-proof.c @@ -327,6 +327,7 @@ proof_cb ( case TALER_KYCLOGIC_STATUS_PROVIDER_FAILED: case TALER_KYCLOGIC_STATUS_USER_ABORTED: case TALER_KYCLOGIC_STATUS_ABORTED: + GNUNET_assert (NULL == kpc->kat); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "KYC process %s/%s (Row #%llu) failed: %d\n", provider_user_id,