diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-08 23:52:01 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-08 23:52:01 +0200 |
commit | 84a40be0bce66cda800de7891f758a0c69afc7fa (patch) | |
tree | aff8ee61032353024cf1a8429f0804162f81085a /src/exchange/taler-exchange-httpd_refreshes_reveal.c | |
parent | 1554cc310d450ee5cfbf3afd947ed8a063043254 (diff) | |
download | exchange-84a40be0bce66cda800de7891f758a0c69afc7fa.tar.gz exchange-84a40be0bce66cda800de7891f758a0c69afc7fa.tar.bz2 exchange-84a40be0bce66cda800de7891f758a0c69afc7fa.zip |
fix #6170 and rest of #6164
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refreshes_reveal.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_refreshes_reveal.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) ) |