aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-02-05 00:12:58 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-02-05 00:12:58 +0100
commitd81a6c7cf22fecb03ea7857b2c6bc2156b2a2ebc (patch)
tree8b61135ae0570d1f40d39d13e5ccba51d3f732e4
parent41acdf11b8869bb261a63891c029487ccae25d35 (diff)
-work on reveal
-rw-r--r--src/lib/exchange_api_refreshes_reveal.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c
index a233df4b0..7536c6de5 100644
--- a/src/lib/exchange_api_refreshes_reveal.c
+++ b/src/lib/exchange_api_refreshes_reveal.c
@@ -323,6 +323,7 @@ TALER_EXCHANGE_refreshes_reveal (
struct TALER_TransferPublicKeyP transfer_pub;
char arg_str[sizeof (struct TALER_RefreshCommitmentP) * 2 + 32];
+ GNUNET_assert (num_coins == rd->fresh_pks_len);
if (noreveal_index >= TALER_CNC_KAPPA)
{
/* We check this here, as it would be really bad to below just
@@ -339,9 +340,10 @@ TALER_EXCHANGE_refreshes_reveal (
return NULL;
}
if (GNUNET_OK !=
- TALER_EXCHANGE_get_melt_data (ps,
- rd,
- &md))
+ TALER_EXCHANGE_get_melt_data_ (ps,
+ rd,
+ alg_values,
+ &md))
{
GNUNET_break (0);
return NULL;
@@ -457,8 +459,6 @@ TALER_EXCHANGE_refreshes_reveal (
}
/* finally, we can actually issue the request */
rrh = GNUNET_new (struct TALER_EXCHANGE_RefreshesRevealHandle);
- rrh->exchange_vals = GNUNET_new_array (struct TALER_ExchangeWithdrawValues,
- md.num_fresh_coins);
rrh->exchange = exchange;
rrh->noreveal_index = noreveal_index;
rrh->reveal_cb = reveal_cb;
@@ -511,9 +511,8 @@ TALER_EXCHANGE_refreshes_reveal_cancel (
}
GNUNET_free (rrh->url);
TALER_curl_easy_post_finished (&rrh->ctx);
- TALER_EXCHANGE_free_melt_data_ (rrh->md); /* does not free 'md' itself */
+ TALER_EXCHANGE_free_melt_data_ (&rrh->md);
GNUNET_free (rrh->exchange_vals);
- GNUNET_free (rrh->md);
GNUNET_free (rrh);
}