commit 7890c46c9d0b47589ec3144a154cc6e2b27249dc
parent fe986813b6989dacf55e820e3b06fcce7575d3b7
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 11 Sep 2023 23:03:30 +0200
one more missing check for no_age_commitment hash
Diffstat:
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c
@@ -76,8 +76,12 @@ TEH_RESPONSE_compile_transaction_history (
&deposit->deposit_fee,
&h_wire,
&deposit->h_contract_terms,
- &deposit->wallet_data_hash,
- &deposit->h_age_commitment,
+ deposit->no_wallet_data_hash
+ ? NULL
+ : &deposit->wallet_data_hash,
+ deposit->no_age_commitment
+ ? NULL
+ : &deposit->h_age_commitment,
&deposit->h_policy,
&deposit->h_denom_pub,
deposit->timestamp,
diff --git a/src/exchangedb/pg_ensure_coin_known.c b/src/exchangedb/pg_ensure_coin_known.c
@@ -41,7 +41,9 @@ TEH_PG_ensure_coin_known (void *cls,
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_auto_from_type (&coin->coin_pub),
GNUNET_PQ_query_param_auto_from_type (&coin->denom_pub_hash),
- GNUNET_PQ_query_param_auto_from_type (&coin->h_age_commitment),
+ coin->no_age_commitment
+ ? GNUNET_PQ_query_param_null ()
+ : GNUNET_PQ_query_param_auto_from_type (&coin->h_age_commitment),
TALER_PQ_query_param_denom_sig (&coin->denom_sig),
GNUNET_PQ_query_param_end
};