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/lib/exchange_api_refresh_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/exchange_api_refresh_common.c') diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c index f0468dc8c..92217c5e8 100644 --- a/src/lib/exchange_api_refresh_common.c +++ b/src/lib/exchange_api_refresh_common.c @@ -536,11 +536,11 @@ TALER_EXCHANGE_refresh_prepare ( { md.fresh_pks[i].rsa_public_key = GNUNET_CRYPTO_rsa_public_key_dup (fresh_pks[i].key.rsa_public_key); - if ( (GNUNET_OK != + if ( (0 > TALER_amount_add (&total, &total, &fresh_pks[i].value)) || - (GNUNET_OK != + (0 > TALER_amount_add (&total, &total, &fresh_pks[i].fee_withdraw)) ) -- cgit v1.2.3