diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-16 21:57:40 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-16 21:57:40 +0100 |
commit | a9ae2171b897dfc9635e9ab72a04d65379bf2208 (patch) | |
tree | 11d67216d1c5594a4048d333b56ac40b4cf0acd1 /src/bank-lib/bank_api_admin.c | |
parent | dd6bad739a7b7539952af6bebb74bfe3ffa0f9d7 (diff) |
reuse TALER_url_join
Diffstat (limited to 'src/bank-lib/bank_api_admin.c')
-rw-r--r-- | src/bank-lib/bank_api_admin.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/bank-lib/bank_api_admin.c b/src/bank-lib/bank_api_admin.c index d81c54dd6..d78cbaa20 100644 --- a/src/bank-lib/bank_api_admin.c +++ b/src/bank-lib/bank_api_admin.c @@ -202,8 +202,15 @@ TALER_BANK_admin_add_incoming (struct GNUNET_CURL_Context *ctx, aai = GNUNET_new (struct TALER_BANK_AdminAddIncomingHandle); aai->cb = res_cb; aai->cb_cls = res_cb_cls; - aai->request_url = TALER_BANK_path_to_url_ (account_base_url, - "/admin/add-incoming"); + aai->request_url = TALER_url_join (account_base_url, + "admin/add-incoming", + NULL); + if (NULL == aai->request_url) + { + GNUNET_free (aai); + GNUNET_break (0); + return NULL; + } GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Requesting administrative transaction at `%s' for reserve %s\n", aai->request_url, |