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_withdraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exchange/taler-exchange-httpd_withdraw.c') diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c index 58ef97bae..152ebfbb0 100644 --- a/src/exchange/taler-exchange-httpd_withdraw.c +++ b/src/exchange/taler-exchange-httpd_withdraw.c @@ -422,7 +422,7 @@ TEH_handler_withdraw (const struct TEH_RequestHandler *rh, &wc.dki->issue.properties.value); TALER_amount_ntoh (&fee_withdraw, &wc.dki->issue.properties.fee_withdraw); - if (GNUNET_OK != + if (0 > TALER_amount_add (&wc.amount_required, &amount, &fee_withdraw)) -- cgit v1.2.3