exchange

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

commit 911c1ffafc045dae1549b2d1be9e5fd69bfd0db0
parent 6b86b4a11f1a52c625bcd9081322be6a41d93c07
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 30 Jun 2026 23:01:21 +0200

fix rare NPE

Diffstat:
Msrc/exchange/taler-exchange-aggregator.c | 2++
Msrc/mhd/mhd2_responses.c | 2--
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c @@ -335,6 +335,8 @@ release_shard (struct Shard *s) { enum GNUNET_DB_QueryStatus qs; + if (NULL == s) + return; /* aggregation units from drain_kyc_alerts have a NULL shard */ qs = TALER_EXCHANGEDB_release_revolving_shard ( pg, "aggregator", diff --git a/src/mhd/mhd2_responses.c b/src/mhd/mhd2_responses.c @@ -84,8 +84,6 @@ TALER_MHD2_can_compress (struct MHD_Request *request) (NULL == aeb.cstr) ) return false; ae = aeb.cstr; - if (NULL == ae) - return false; if (0 == strcmp (ae, "*")) return true;