exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit e2a59c12377439032aa3299f118db954f771bbfe
parent 34c6830882936a3aee4a7af316093e5660abc4b7
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  8 Apr 2024 19:49:05 +0200

fix #8713

Diffstat:
Msrc/util/crypto_confirmation.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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 ==