aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-23 14:38:22 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-23 14:38:22 +0200
commit74f8fcf01e3f489d87483c201f0971083a75836d (patch)
treec2e9ebe541a8d71f3909649459c707b7a42d160c /src
parent9c21e22da9e2f411cfc3d2c900f4aabe2e3a88f1 (diff)
-fix crash
Diffstat (limited to 'src')
-rw-r--r--src/auditor/taler-helper-auditor-wire-debit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auditor/taler-helper-auditor-wire-debit.c b/src/auditor/taler-helper-auditor-wire-debit.c
index 105867bf2..462be716e 100644
--- a/src/auditor/taler-helper-auditor-wire-debit.c
+++ b/src/auditor/taler-helper-auditor-wire-debit.c
@@ -1200,11 +1200,11 @@ history_debit_cb (
TALER_B2S (&dd->wtid));
wa->wire_off_out = dd->serial_id;
slen = strlen (dd->credit_account_uri) + 1;
+ roi = GNUNET_malloc (sizeof (struct ReserveOutInfo)
+ + slen);
GNUNET_CRYPTO_hash (&dd->wtid,
sizeof (dd->wtid),
&roi->subject_hash);
- roi = GNUNET_malloc (sizeof (struct ReserveOutInfo)
- + slen);
roi->details = *dd;
roi->details.credit_account_uri
= (const char *) &roi[1];