permit subtraction to result in zero

This commit is contained in:
Christian Grothoff 2020-03-28 21:39:34 +01:00
parent 28492256a5
commit b409d6a17e
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -312,7 +312,7 @@ refund_by_coin_cb (void *cls,
"Aggregator subtracts applicable refund of amount %s\n",
TALER_amount2s (amount_with_fee));
aux->have_refund = GNUNET_YES;
if (GNUNET_OK !=
if (GNUNET_SYSERR ==
TALER_amount_subtract (&aux->total_amount,
&aux->total_amount,
amount_with_fee))