fix #6215~15757

This commit is contained in:
Christian Grothoff 2020-04-23 12:05:27 +02:00
parent c79a95c7d2
commit 051ccdf0e7
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -128,7 +128,8 @@ TALER_string_to_amount (const char *str,
n = *value - '0';
if ( (amount->value * 10 < amount->value) ||
(amount->value * 10 + n < amount->value) ||
(amount->value > MAX_AMOUNT_VALUE) )
(amount->value > MAX_AMOUNT_VALUE) ||
(amount->value * 10 + n > MAX_AMOUNT_VALUE) )
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Value specified in amount `%s' is too large\n",