summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/amount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/amount.c b/src/util/amount.c
index 88f4b6aae..ee50a9bca 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -261,7 +261,10 @@ enum GNUNET_GenericReturnValue
TALER_amount_is_valid (const struct TALER_Amount *amount)
{
if (amount->value > TALER_AMOUNT_MAX_VALUE)
+ {
+ GNUNET_break (0);
return GNUNET_SYSERR;
+ }
return ('\0' != amount->currency[0]) ? GNUNET_OK : GNUNET_NO;
}