commit b07c3624b4efd8b759dac60254e357532a2edfa5
parent 3c66d206b8e1031ec47707d6dd9387c6224f87fe
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 13 Oct 2026 00:04:34 +0200
misc minor fixes
Diffstat:
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/lib/exchange_api_get-reserves-RESERVE_PUB-history.c b/src/lib/exchange_api_get-reserves-RESERVE_PUB-history.c
@@ -1026,9 +1026,12 @@ handle_header (char *buffer,
&tval,
&dummy))
{
+ /* Not an ETag we understand (weak validators are permitted by
+ RFC 9110, Section 8.8.3); ignore it instead of aborting the
+ transfer with a write error. */
GNUNET_break_op (0);
GNUNET_free (ndup);
- return 0;
+ return total;
}
grhh->etag = (uint64_t) tval;
}
diff --git a/src/lib/exchange_api_get-reserves-RESERVE_PUB.c b/src/lib/exchange_api_get-reserves-RESERVE_PUB.c
@@ -104,9 +104,9 @@ handle_reserves_get_ok (struct TALER_EXCHANGE_GetReservesHandle *grh,
TALER_JSON_spec_amount_any ("balance",
&rs.details.ok.balance),
GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_string (
+ TALER_JSON_spec_full_payto_uri (
"last_origin",
- (const char **) &rs.details.ok.last_origin.full_payto),
+ &rs.details.ok.last_origin),
NULL),
GNUNET_JSON_spec_end ()
};
diff --git a/src/lib/exchange_api_restrictions.c b/src/lib/exchange_api_restrictions.c
@@ -125,8 +125,9 @@ TALER_EXCHANGE_keys_evaluate_hard_limits (
continue;
if (al->soft_limit)
continue;
- if (! TALER_amount_cmp_currency (limit,
- &al->threshold))
+ if (GNUNET_YES !=
+ TALER_amount_cmp_currency (limit,
+ &al->threshold))
continue;
GNUNET_break (GNUNET_OK ==
TALER_amount_min (limit,