exchange

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

commit a5eb443ec0593602da72daf67b4f4ade77a98e92
parent a20059f0076402a2fca4ba453d33135724e9f6c1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 28 Jun 2026 18:26:18 +0200

bugs

Diffstat:
Msrc/exchange/taler-exchange-closer.c | 2--
Msrc/exchangedb/get_reserve_history.c | 7+++++++
Msrc/kyclogic/plugin_kyclogic_persona.c | 4+++-
3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-closer.c b/src/exchange/taler-exchange-closer.c @@ -354,8 +354,6 @@ expired_reserve_cb (void *cls, } if (TALER_amount_is_zero (&amount_without_fee)) { - enum GNUNET_DB_QueryStatus qs; - /* Reserve balance was zero OR soft error */ GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Reserve was virtually empty, moving on\n"); diff --git a/src/exchangedb/get_reserve_history.c b/src/exchangedb/get_reserve_history.c @@ -983,6 +983,13 @@ TALER_EXCHANGEDB_get_reserve_history ( case GNUNET_DB_STATUS_SOFT_ERROR: TALER_EXCHANGEDB_free_reserve_history (rhc.rh); rhc.rh = NULL; + rhc.rh_tail = NULL; + GNUNET_assert (GNUNET_OK == + TALER_amount_set_zero (pg->currency, + &rhc.balance_in)); + GNUNET_assert (GNUNET_OK == + TALER_amount_set_zero (pg->currency, + &rhc.balance_out)); continue; case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT: diff --git a/src/kyclogic/plugin_kyclogic_persona.c b/src/kyclogic/plugin_kyclogic_persona.c @@ -1956,7 +1956,9 @@ async_webhook_reply (void *cls) ? NULL : &wh->h_payto, wh->is_wallet, - wh->pd->section, + (NULL != wh->pd) + ? wh->pd->section + : "<unknown>", NULL, wh->inquiry_id, /* provider legi ID */ TALER_KYCLOGIC_STATUS_PROVIDER_FAILED,