aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/amount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/amount.c b/src/util/amount.c
index 2de937620..3d838b4ce 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -126,7 +126,8 @@ TALER_string_to_amount (const char *str,
return GNUNET_SYSERR;
}
n = *value - '0';
- if ( (amount->value * 10 + n < amount->value) ||
+ if ( (amount->value * 10 < amount->value) ||
+ (amount->value * 10 + n < amount->value) ||
(amount->value > MAX_AMOUNT_VALUE) )
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,