commit 3983b278caf144ef2344ac40025b8b5f5ec8eaa9
parent 3ed07c008d6128428d46668716a537ee2bd2ca76
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Fri, 14 Aug 2026 22:50:44 +0200
more RC error causing double-free
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/exchange_api_post-withdraw.c b/src/lib/exchange_api_post-withdraw.c
@@ -813,13 +813,13 @@ prepare_coins (
bool age_denom = (0 != denoms_pub[i].key.age_mask.bits);
cd->denom_pub = denoms_pub[i];
+ TALER_denom_pub_copy (&cd->denom_pub.key,
+ &denoms_pub[i].key);
/* The age mask must be the same for all coins */
FAIL_IF (wh->with_age_proof &&
(0 == denoms_pub[i].key.age_mask.bits));
FAIL_IF (wh->age_mask.bits !=
denoms_pub[i].key.age_mask.bits);
- TALER_denom_pub_copy (&cd->denom_pub.key,
- &denoms_pub[i].key);
/* Mark the indices of the coins which are of type Clause-Schnorr
* and add their denomination public key hash to the list.