commit 99a3a309c4d4d65322f3f73ae7977d13d4b49d22
parent 64416a58d18350e4bec0a67a963378f8aaf7e759
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 8 Nov 2026 23:19:46 +0100
init rowid to 0 if no rowid is found
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/auditor/taler-helper-auditor-reserves.c b/src/auditor/taler-helper-auditor-reserves.c
@@ -1027,9 +1027,18 @@ get_closing_fee (const struct TALER_FullPayto receiver_account,
struct GNUNET_TIME_Timestamp end_date;
struct TALER_WireFeeSet fees;
char *method;
- uint64_t rowid;
+ /* Only set by TALER_EXCHANGEDB_get_wire_fee() if a fee was found;
+ 0 means 'no such row' in the diagnostic below. */
+ uint64_t rowid = 0;
method = TALER_payto_get_method (receiver_account.full_payto);
+ if (NULL == method)
+ {
+ report_row_inconsistency ("closing-fee",
+ 0,
+ "specified wire address lacks method");
+ return GNUNET_SYSERR;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Method is `%s'\n",
method);