[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: do not NPE if encountering reser
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: do not NPE if encountering reserve_close for which we have no summary |
Date: |
Tue, 25 Feb 2020 14:12:31 +0100 |
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 548a0cc0 do not NPE if encountering reserve_close for which we have no
summary
548a0cc0 is described below
commit 548a0cc09d84c5652b5e5f0fdfb455842f6edc62
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Feb 25 14:12:28 2020 +0100
do not NPE if encountering reserve_close for which we have no summary
---
src/auditor/taler-auditor.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 2827f679..1c6f82c8 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -1083,6 +1083,8 @@ handle_reserve_in (void *cls,
TALER_amount_add (&rs->total_in,
&rs->total_in,
credit));
+ if (NULL == rs->sender_account)
+ rs->sender_account = GNUNET_strdup (sender_account_details);
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Additional incoming wire transfer for reserve `%s' of %s\n",
@@ -1590,8 +1592,15 @@ handle_reserve_closed (void *cls,
1);
}
}
- if (0 != strcmp (rs->sender_account,
- receiver_account))
+ if (NULL == rs->sender_account)
+ {
+ GNUNET_break (GNUNET_NO == rs->had_ri);
+ report_row_inconsistency ("reserves_close",
+ rowid,
+ "target account not verified, auditor does not
know reserve");
+ }
+ else if (0 != strcmp (rs->sender_account,
+ receiver_account))
{
report_row_inconsistency ("reserves_close",
rowid,
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [taler-exchange] branch master updated: do not NPE if encountering reserve_close for which we have no summary,
gnunet <=