summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-04-08 19:49:05 +0200
committerChristian Grothoff <christian@grothoff.org>2024-04-08 19:49:05 +0200
commite2a59c12377439032aa3299f118db954f771bbfe (patch)
treed2bb09da1fadbef84f965602bcfb1e72323e06c0 /src
parent34c6830882936a3aee4a7af316093e5660abc4b7 (diff)
downloadexchange-e2a59c12377439032aa3299f118db954f771bbfe.tar.gz
exchange-e2a59c12377439032aa3299f118db954f771bbfe.tar.bz2
exchange-e2a59c12377439032aa3299f118db954f771bbfe.zip
fix #8713
Diffstat (limited to 'src')
-rw-r--r--src/util/crypto_confirmation.c7
1 files changed, 7 insertions, 0 deletions
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 ==