aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/taler-helper-auditor-wire.c
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 /src/auditor/taler-helper-auditor-wire.c
parente352fdd356dd3d78c992b9355e68b392cb9d10c2 (diff)
-fix crash
Diffstat (limited to 'src/auditor/taler-helper-auditor-wire.c')
-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 ();
}