commit f75bf8c41e2d1eb2d5e44b227ff38c35c95824ed
parent 9a96cbfccca315c07140654fbaad0c2385ea3f9c
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 7 Oct 2025 20:58:42 +0200
-fix incorrect return value
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/lib/donau_api_handle.c b/src/lib/donau_api_handle.c
@@ -769,10 +769,12 @@ DONAU_get_donation_amount_from_bkps (
const struct DONAU_DonationUnitInformation *dui =
DONAU_get_donation_unit_key_by_hash (keys,
&bkps[i].h_donation_unit_pub);
+
if (NULL == dui)
{
- GNUNET_break (0);
- return GNUNET_SYSERR;
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Donation unit public key unknown\n");
+ return GNUNET_NO;
}
if (dui->year != year)
{