commit 314116595e3b1b43dfba23839313dc1590b67b20
parent 46759a8c52107c8300e7110d22ffeebf0614c912
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 18 Jul 2026 11:26:41 +0200
fix uninitialized coin_pub on 409 return path
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_post-purses-PURSE_PUB-create.c b/src/exchange/taler-exchange-httpd_post-purses-PURSE_PUB-create.c
@@ -264,7 +264,6 @@ create_transaction (void *cls,
if (conflict)
{
struct TALER_Amount amount;
- struct TALER_CoinSpendPublicKeyP coin_pub;
struct TALER_CoinSpendSignatureP coin_sig;
struct TALER_DenominationHashP h_denom_pub;
struct TALER_AgeCommitmentHashP phac;
@@ -298,7 +297,7 @@ create_transaction (void *cls,
TALER_JSON_pack_ec (
TALER_EC_EXCHANGE_PURSE_DEPOSIT_CONFLICTING_META_DATA),
GNUNET_JSON_pack_data_auto ("coin_pub",
- &coin_pub),
+ &coin->cpi.coin_pub),
GNUNET_JSON_pack_data_auto ("coin_sig",
&coin_sig),
GNUNET_JSON_pack_data_auto ("h_denom_pub",
diff --git a/src/exchange/taler-exchange-httpd_post-purses-PURSE_PUB-deposit.c b/src/exchange/taler-exchange-httpd_post-purses-PURSE_PUB-deposit.c
@@ -225,7 +225,6 @@ deposit_transaction (void *cls,
if (conflict)
{
struct TALER_Amount amount;
- struct TALER_CoinSpendPublicKeyP coin_pub;
struct TALER_CoinSpendSignatureP coin_sig;
struct TALER_DenominationHashP h_denom_pub;
struct TALER_AgeCommitmentHashP phac;
@@ -259,7 +258,7 @@ deposit_transaction (void *cls,
TALER_JSON_pack_ec (
TALER_EC_EXCHANGE_PURSE_DEPOSIT_CONFLICTING_META_DATA),
GNUNET_JSON_pack_data_auto ("coin_pub",
- &coin_pub),
+ &coin->cpi.coin_pub),
GNUNET_JSON_pack_data_auto ("h_denom_pub",
&h_denom_pub),
GNUNET_JSON_pack_data_auto ("h_age_commitment",