[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: fix bug: case where this is the
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: fix bug: case where this is the first refund |
Date: |
Fri, 14 Aug 2020 13:07:55 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new e8ea6bf1 fix bug: case where this is the first refund
e8ea6bf1 is described below
commit e8ea6bf1e7d9f22a964a9e7e13bc68debb0a7954
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Aug 14 13:07:53 2020 +0200
fix bug: case where this is the first refund
---
src/lib/exchange_api_refund.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/lib/exchange_api_refund.c b/src/lib/exchange_api_refund.c
index ee634e7f..55f71757 100644
--- a/src/lib/exchange_api_refund.c
+++ b/src/lib/exchange_api_refund.c
@@ -377,13 +377,20 @@ verify_conflict_history_ok (struct
TALER_EXCHANGE_RefundHandle *rh,
TALER_amount_ntoh (&amount,
&rh->depconf.refund_amount);
- if (0 >
- TALER_amount_add (&rtotal,
- &rtotal,
- &amount))
+ if (have_refund)
{
- GNUNET_break (0);
- return GNUNET_SYSERR;
+ if (0 >
+ TALER_amount_add (&rtotal,
+ &rtotal,
+ &amount))
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
+ }
+ else
+ {
+ rtotal = amount;
}
}
if (-1 == TALER_amount_cmp (&dtotal,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: fix bug: case where this is the first refund,
gnunet <=