diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-16 15:06:09 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-16 15:06:16 +0100 |
commit | 14ab704cde389ae8eea94f08f29ac3af955729c9 (patch) | |
tree | 6772dce9df0c675105b14b51aa8617050d851f7c /src/bank-lib/bank_api_debit.c | |
parent | 1fc8fd22dc417f151e28a63dfc6fd58cf4b10b2e (diff) | |
download | exchange-14ab704cde389ae8eea94f08f29ac3af955729c9.tar.xz |
fix fakebank logic
Diffstat (limited to 'src/bank-lib/bank_api_debit.c')
-rw-r--r-- | src/bank-lib/bank_api_debit.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/bank-lib/bank_api_debit.c b/src/bank-lib/bank_api_debit.c index ea3ddeebc..5688d4772 100644 --- a/src/bank-lib/bank_api_debit.c +++ b/src/bank-lib/bank_api_debit.c @@ -41,11 +41,6 @@ struct TALER_BANK_DebitHistoryHandle char *request_url; /** - * The base URL of the bank. - */ - char *bank_base_url; - - /** * Handle for the request. */ struct GNUNET_CURL_Job *job; @@ -220,7 +215,7 @@ handle_history_finished (void *cls, * Request the debit history of the exchange's bank account. * * @param ctx curl context for the event loop - * @param bank_base_url URL of the base INCLUDING account number + * @param account_base_url URL of the base INCLUDING account number * @param auth authentication data to use * @param start_row from which row on do we want to get results, * use UINT64_MAX for the latest; exclusive @@ -237,7 +232,7 @@ handle_history_finished (void *cls, */ struct TALER_BANK_DebitHistoryHandle * TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx, - const char *bank_base_url, + const char *account_base_url, const struct TALER_BANK_AuthenticationData *auth, uint64_t start_row, int64_t num_results, @@ -269,8 +264,7 @@ TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx, hh = GNUNET_new (struct TALER_BANK_DebitHistoryHandle); hh->hcb = hres_cb; hh->hcb_cls = hres_cb_cls; - hh->bank_base_url = GNUNET_strdup (bank_base_url); - hh->request_url = TALER_BANK_path_to_url_ (bank_base_url, + hh->request_url = TALER_BANK_path_to_url_ (account_base_url, url); GNUNET_log (GNUNET_ERROR_TYPE_INFO, @@ -317,7 +311,6 @@ TALER_BANK_debit_history_cancel (struct TALER_BANK_DebitHistoryHandle *hh) hh->job = NULL; } GNUNET_free (hh->request_url); - GNUNET_free (hh->bank_base_url); GNUNET_free (hh); } |