diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c index 667f4ac2..b6790461 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -1132,8 +1132,6 @@ process_pay_with_exchange ( enum TALER_ErrorCode ec; unsigned int http_status; bool is_age_restricted_denom = false; - struct TALER_AgeCommitmentHash ach = {0}; - struct TALER_AgeCommitmentHash *achp = NULL; if (NULL != dc->dh) continue; /* we were here before (can happen due to @@ -1261,9 +1259,8 @@ AGE_FAIL: /* Age restriction successfully verified! * Calculate the hash of the age commitment. */ TALER_age_commitment_hash (&dc->age_commitment, - &ach); + &dc->h_age_commitment); GNUNET_free (dc->age_commitment.keys); - achp = &ach; } else if (is_age_restricted_denom) { @@ -1284,8 +1281,6 @@ AGE_FAIL: &denom_details->h_key))); return; } - - achp = &dc->h_age_commitment; } dc->deposit_fee = denom_details->fees.deposit; @@ -1296,10 +1291,10 @@ AGE_FAIL: { struct TALER_EXCHANGE_CoinDepositDetail cdd = { .amount = dc->amount_with_fee, - .h_age_commitment = h_age_commitment, .coin_pub = dc->coin_pub, .coin_sig = dc->coin_sig, - .denom_sig = dc->ub_sig + .denom_sig = dc->ub_sig, + .h_age_commitment = dc->h_age_commitment }; struct TALER_EXCHANGE_DepositContractDetail dcd = { .wire_deadline = pc->wire_transfer_deadline, |