commit 08e35d62cbe7bb065f474ed2951bcf27283498ad
parent 22d60719663f180d2ef5ff6e06288ba474926e08
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 2 Jun 2026 20:34:30 +0200
more fixes
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/donau/donau-httpd_post-batch-issue-CHARITY_ID.c b/src/donau/donau-httpd_post-batch-issue-CHARITY_ID.c
@@ -339,6 +339,7 @@ start:
GNUNET_CRYPTO_blinded_sig_decref (
check_receipts_meta.blinded_sigs[i].blinded_sig);
}
+ GNUNET_free (check_receipts_meta.blinded_sigs);
free_bkps (num_bkps,
bkps);
return TALER_MHD_REPLY_JSON_PACK (
diff --git a/src/donaudb/donau_do_insert_issued_receipts.sql b/src/donaudb/donau_do_insert_issued_receipts.sql
@@ -47,6 +47,14 @@ BEGIN
FROM charities chari
WHERE charity_id=in_charity_id;
+ IF (my_year > in_year)
+ THEN
+ -- server travelled back in time? wild, but
+ -- we closed the books on the previous year,
+ -- so assume balance was exceeded.
+ out_smaller_than_max_per_year = TRUE;
+ RETURN;
+ END IF;
IF (my_year < in_year)
THEN
-- bump current year