-work on fTBFS

This commit is contained in:
Christian Grothoff 2021-10-26 09:34:14 +02:00
parent fd615f3e33
commit f1237f1923
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -53,8 +53,7 @@ TALER_EXCHANGE_free_melt_data_ (struct MeltData *md)
if (NULL != md->fresh_pks) if (NULL != md->fresh_pks)
{ {
for (unsigned int i = 0; i<md->num_fresh_coins; i++) for (unsigned int i = 0; i<md->num_fresh_coins; i++)
if (NULL != md->fresh_pks[i].rsa_public_key) TALER_denom_pub_free (&md->fresh_pks[i]);
GNUNET_CRYPTO_rsa_public_key_free (md->fresh_pks[i].rsa_public_key);
GNUNET_free (md->fresh_pks); GNUNET_free (md->fresh_pks);
} }
@ -521,16 +520,16 @@ TALER_EXCHANGE_refresh_prepare (
GNUNET_assert (GNUNET_OK == GNUNET_assert (GNUNET_OK ==
TALER_amount_set_zero (melt_amount->currency, TALER_amount_set_zero (melt_amount->currency,
&total)); &total));
md.melted_coin.pub_key.rsa_public_key TALER_denom_pub_deep_copy (&md.melted_coin.pub_key,
= GNUNET_CRYPTO_rsa_public_key_dup (melt_pk->key.rsa_public_key); &melt_pk->key);
md.melted_coin.sig.rsa_signature TALER_denom_sig_deep_copy (&md.melted_coin.sig,
= GNUNET_CRYPTO_rsa_signature_dup (melt_sig->rsa_signature); melt_sig);
md.fresh_pks = GNUNET_new_array (fresh_pks_len, md.fresh_pks = GNUNET_new_array (fresh_pks_len,
struct TALER_DenominationPublicKey); struct TALER_DenominationPublicKey);
for (unsigned int i = 0; i<fresh_pks_len; i++) for (unsigned int i = 0; i<fresh_pks_len; i++)
{ {
md.fresh_pks[i].rsa_public_key TALER_denom_pub_deep_copy (&md.fresh_pks[i],
= GNUNET_CRYPTO_rsa_public_key_dup (fresh_pks[i].key.rsa_public_key); &fresh_pks[i].key);
if ( (0 > if ( (0 >
TALER_amount_add (&total, TALER_amount_add (&total,
&total, &total,