fix potential NPE
This commit is contained in:
parent
23cb1d46a8
commit
af6e9f134a
@ -1073,6 +1073,9 @@ handle_payback_by_reserve (void *cls,
|
|||||||
report_row_inconsistency ("payback",
|
report_row_inconsistency ("payback",
|
||||||
rowid,
|
rowid,
|
||||||
"denomination key not in revocation set");
|
"denomination key not in revocation set");
|
||||||
|
/* FIXME: add amount involved to some loss statistic!?
|
||||||
|
It's kind-of not a loss (we just paid back), OTOH, it is
|
||||||
|
certainly irregular and involves some amount. */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1105,7 +1108,8 @@ handle_payback_by_reserve (void *cls,
|
|||||||
{
|
{
|
||||||
rev_rowid = 0; /* reported elsewhere */
|
rev_rowid = 0; /* reported elsewhere */
|
||||||
}
|
}
|
||||||
if (0 == strcmp (rev, "master signature invalid"))
|
if ( (NULL != rev) &&
|
||||||
|
(0 == strcmp (rev, "master signature invalid")) )
|
||||||
{
|
{
|
||||||
report (report_bad_sig_losses,
|
report (report_bad_sig_losses,
|
||||||
json_pack ("{s:s, s:I, s:o, s:o}",
|
json_pack ("{s:s, s:I, s:o, s:o}",
|
||||||
|
Loading…
Reference in New Issue
Block a user