summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_batch-deposit.c4
-rw-r--r--src/util/crypto.c4
2 files changed, 6 insertions, 2 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,
diff --git a/src/util/crypto.c b/src/util/crypto.c
index 8699035c8..caa5a1223 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -85,7 +85,9 @@ TALER_test_coin_valid (const struct TALER_CoinPublicInfo *coin_public_info,
#endif
TALER_coin_pub_hash (&coin_public_info->coin_pub,
- &coin_public_info->h_age_commitment,
+ coin_public_info->no_age_commitment
+ ? NULL
+ : &coin_public_info->h_age_commitment,
&c_hash);
if (GNUNET_OK !=