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/lib/exchange_api_withdraw.c | |
parent | 1554cc310d450ee5cfbf3afd947ed8a063043254 (diff) | |
download | exchange-84a40be0bce66cda800de7891f758a0c69afc7fa.tar.xz |
fix #6170 and rest of #6164
Diffstat (limited to 'src/lib/exchange_api_withdraw.c')
-rw-r--r-- | src/lib/exchange_api_withdraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/exchange_api_withdraw.c b/src/lib/exchange_api_withdraw.c index c72454e2c..6258053bb 100644 --- a/src/lib/exchange_api_withdraw.c +++ b/src/lib/exchange_api_withdraw.c @@ -242,7 +242,7 @@ reserve_withdraw_payment_required ( return GNUNET_SYSERR; } /* Compute how much we expected to charge to the reserve */ - if (GNUNET_OK != + if (0 > TALER_amount_add (&requested_amount, &wh->pk.value, &wh->pk.fee_withdraw)) @@ -515,7 +515,7 @@ TALER_EXCHANGE_withdraw ( &req.reserve_pub.eddsa_pub); req.purpose.size = htonl (sizeof (struct TALER_WithdrawRequestPS)); req.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_RESERVE_WITHDRAW); - if (GNUNET_OK != + if (0 > TALER_amount_add (&amount_with_fee, &pk->fee_withdraw, &pk->value)) |