exchange

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

commit fb84cf969877d5b23d831b30cbaac5ddfa7d3017
parent 423fa3cc9bd45de2cad0d0919aecf3df6a614a58
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Thu,  7 Dec 2023 22:45:20 +0900

-fix potential uninitialized variable in fakebank logic

Diffstat:
Msrc/bank-lib/fakebank_tbr_get_history.c | 2++
Msrc/bank-lib/fakebank_twg_history.c | 4++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/bank-lib/fakebank_tbr_get_history.c b/src/bank-lib/fakebank_tbr_get_history.c @@ -149,6 +149,7 @@ TALER_FAKEBANK_tbr_get_history_incoming ( if (GNUNET_TIME_relative_is_zero (hc->ha.lp_timeout) && (0 < hc->ha.delta)) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); if (overflow) @@ -160,6 +161,7 @@ TALER_FAKEBANK_tbr_get_history_incoming ( } if (h->in_shutdown) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); goto finish; diff --git a/src/bank-lib/fakebank_twg_history.c b/src/bank-lib/fakebank_twg_history.c @@ -147,6 +147,7 @@ TALER_FAKEBANK_twg_get_debit_history_ ( if ( (GNUNET_TIME_relative_is_zero (hc->ha.lp_timeout)) && (0 < hc->ha.delta)) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); if (overflow) @@ -160,6 +161,7 @@ TALER_FAKEBANK_twg_get_debit_history_ ( } if (h->in_shutdown) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); goto finish; @@ -400,6 +402,7 @@ TALER_FAKEBANK_twg_get_credit_history_ ( if (GNUNET_TIME_relative_is_zero (hc->ha.lp_timeout) && (0 < hc->ha.delta)) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); if (overflow) @@ -411,6 +414,7 @@ TALER_FAKEBANK_twg_get_credit_history_ ( } if (h->in_shutdown) { + acc_payto_uri = hc->acc->payto_uri; GNUNET_assert (0 == pthread_mutex_unlock (&h->big_lock)); goto finish;