commit b409d6a17e6aaf054876c7cc7fc08515d2315bbc
parent 28492256a5795ff2f72fbf181c15e84fd0d1dbff
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 28 Mar 2020 21:39:34 +0100
permit subtraction to result in zero
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c
@@ -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))