aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-07-21 15:22:46 +0200
committerChristian Grothoff <christian@grothoff.org>2023-07-21 15:22:46 +0200
commit7b258d4bdfd8511e75637b5ed623cd1971e7c873 (patch)
treec7d195f36b49640b0f36830d81865e3097f2723f
parente352fdd356dd3d78c992b9355e68b392cb9d10c2 (diff)
downloadexchange-7b258d4bdfd8511e75637b5ed623cd1971e7c873.tar.xz
-fix crash
-rw-r--r--src/auditor/taler-helper-auditor-wire.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c
index bfc465b05..e3753b596 100644
--- a/src/auditor/taler-helper-auditor-wire.c
+++ b/src/auditor/taler-helper-auditor-wire.c
@@ -1629,8 +1629,11 @@ begin_debit_audit (void)
static void
conclude_credit_history (void)
{
- GNUNET_CONTAINER_multihashmap_destroy (in_map);
- in_map = NULL;
+ if (NULL != in_map)
+ {
+ GNUNET_CONTAINER_multihashmap_destroy (in_map);
+ in_map = NULL;
+ }
/* credit done, now check debits */
begin_debit_audit ();
}