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_refreshes_reveal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_refreshes_reveal.c') diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c index 5b6ca2d32..da1b3eb94 100644 --- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c +++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c @@ -436,11 +436,11 @@ refreshes_reveal_transaction (void *cls, &rctx->dkis[i]->issue.properties.fee_withdraw); TALER_amount_ntoh (&value, &rctx->dkis[i]->issue.properties.value); - if ( (GNUNET_OK != + if ( (0 > TALER_amount_add (&total, &fee_withdraw, &value)) || - (GNUNET_OK != + (0 > TALER_amount_add (&refresh_cost, &refresh_cost, &total)) ) -- cgit v1.2.3