fix bug: case where this is the first refund
This commit is contained in:
parent
18605e6c98
commit
e8ea6bf1e7
@ -377,6 +377,8 @@ verify_conflict_history_ok (struct TALER_EXCHANGE_RefundHandle *rh,
|
|||||||
|
|
||||||
TALER_amount_ntoh (&amount,
|
TALER_amount_ntoh (&amount,
|
||||||
&rh->depconf.refund_amount);
|
&rh->depconf.refund_amount);
|
||||||
|
if (have_refund)
|
||||||
|
{
|
||||||
if (0 >
|
if (0 >
|
||||||
TALER_amount_add (&rtotal,
|
TALER_amount_add (&rtotal,
|
||||||
&rtotal,
|
&rtotal,
|
||||||
@ -386,6 +388,11 @@ verify_conflict_history_ok (struct TALER_EXCHANGE_RefundHandle *rh,
|
|||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rtotal = amount;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (-1 == TALER_amount_cmp (&dtotal,
|
if (-1 == TALER_amount_cmp (&dtotal,
|
||||||
&rtotal))
|
&rtotal))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user