summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_csr.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-02-05 20:40:39 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-02-05 20:40:39 +0100
commit718ad3996f00a9aee3302c5920f6ea7d0b3a36a6 (patch)
tree019138b16b746aa7fab8d442e7e78b3d9bb40977 /src/lib/exchange_api_csr.c
parente8740316a79567eb23b6b75edabc1d1d77107237 (diff)
downloadexchange-718ad3996f00a9aee3302c5920f6ea7d0b3a36a6.tar.gz
exchange-718ad3996f00a9aee3302c5920f6ea7d0b3a36a6.tar.bz2
exchange-718ad3996f00a9aee3302c5920f6ea7d0b3a36a6.zip
-FTBFS
Diffstat (limited to 'src/lib/exchange_api_csr.c')
-rw-r--r--src/lib/exchange_api_csr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/exchange_api_csr.c b/src/lib/exchange_api_csr.c
index 1716bbb5e..542931b40 100644
--- a/src/lib/exchange_api_csr.c
+++ b/src/lib/exchange_api_csr.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2014-2021 Taler Systems SA
+ Copyright (C) 2014-2022 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -93,7 +93,7 @@ csr_ok (struct TALER_EXCHANGE_CsRHandle *csrh,
unsigned int alen = json_array_size (arr);
struct TALER_ExchangeWithdrawValues alg_values[GNUNET_NZL (alen)];
struct TALER_EXCHANGE_CsRResponse csrr = {
- .hr = hr,
+ .hr = *hr,
.details.success.arg_values_len = alen,
.details.success.alg_values = alg_values
};
@@ -260,7 +260,7 @@ TALER_EXCHANGE_csr (struct TALER_EXCHANGE_Handle *exchange,
csr_obj = GNUNET_JSON_PACK (
GNUNET_JSON_pack_data_varsize ("nonce",
- nk->nonce,
+ &nk->nonce,
sizeof(struct TALER_CsNonce)),
GNUNET_JSON_pack_data_varsize ("denom_pub_hash",
&nk->pk->h_key,
@@ -284,8 +284,8 @@ TALER_EXCHANGE_csr (struct TALER_EXCHANGE_Handle *exchange,
json_t *req;
req = GNUNET_JSON_PACK (
- GNUNET_JSON_pack_data_json ("nks",
- csr_arr));
+ GNUNET_JSON_pack_array_steal ("nks",
+ csr_arr));
ctx = TEAH_handle_to_context (exchange);
eh = TALER_EXCHANGE_curl_easy_get_ (csrh->url);
if ( (NULL == eh) ||