From 84a40be0bce66cda800de7891f758a0c69afc7fa Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Apr 2020 23:52:01 +0200 Subject: fix #6170 and rest of #6164 --- src/exchange/taler-exchange-httpd_recoup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exchange/taler-exchange-httpd_recoup.c') diff --git a/src/exchange/taler-exchange-httpd_recoup.c b/src/exchange/taler-exchange-httpd_recoup.c index ccb75622e..a3014e786 100644 --- a/src/exchange/taler-exchange-httpd_recoup.c +++ b/src/exchange/taler-exchange-httpd_recoup.c @@ -242,7 +242,7 @@ recoup_transaction (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Recoup: coin value %s\n", TALER_amount2s (&pc->value)); - if (GNUNET_SYSERR == + if (0 > TALER_amount_subtract (&pc->amount, &pc->value, &spent)) -- cgit v1.2.3