From e2a59c12377439032aa3299f118db954f771bbfe Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 8 Apr 2024 19:49:05 +0200 Subject: fix #8713 --- src/util/crypto_confirmation.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/util/crypto_confirmation.c b/src/util/crypto_confirmation.c index 204c373da..5670f5560 100644 --- a/src/util/crypto_confirmation.c +++ b/src/util/crypto_confirmation.c @@ -261,6 +261,13 @@ TALER_build_pos_confirmation (const char *pos_key, struct GNUNET_HashCode hkey; struct TALER_AmountNBO ntotal; + if ( (NULL == total) || + (GNUNET_YES != + TALER_amount_is_valid (total) ) ) + { + GNUNET_break_op (0); + return GNUNET_SYSERR; + } TALER_amount_hton (&ntotal, total); GNUNET_assert (GNUNET_YES == -- cgit v1.2.3