diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-11 22:14:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-11 22:14:12 +0200 |
commit | 31b317de5945edda959fd653606e9d1bda260d14 (patch) | |
tree | 32be92a1b2d6a044d18b6e3e249274a1d6b91d8c /src/exchange | |
parent | 552cb25a3248b01be8de9485430e47dfe4d0a701 (diff) | |
download | exchange-31b317de5945edda959fd653606e9d1bda260d14.tar.gz exchange-31b317de5945edda959fd653606e9d1bda260d14.tar.bz2 exchange-31b317de5945edda959fd653606e9d1bda260d14.zip |
check for no_age_commitment before using uninitialized age_commitment hash
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-httpd_batch-deposit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_batch-deposit.c b/src/exchange/taler-exchange-httpd_batch-deposit.c index 4ef143084..6bf70efb4 100644 --- a/src/exchange/taler-exchange-httpd_batch-deposit.c +++ b/src/exchange/taler-exchange-httpd_batch-deposit.c @@ -469,7 +469,9 @@ parse_coin (struct MHD_Connection *connection, &dc->h_wire, &bd->h_contract_terms, &bd->wallet_data_hash, - &cdi->coin.h_age_commitment, + NULL != cdi->coin.no_age_commitment + ? NULL + : &cdi->coin.h_age_commitment, NULL != dc->policy_json ? &dc->h_policy : NULL, &cdi->coin.denom_pub_hash, bd->wallet_timestamp, |