diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-03 17:14:00 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-03 17:14:00 +0100 |
commit | a9b3c564bdd80ad6d3db0d0c493144956c64368d (patch) | |
tree | 0d6b2e480eb87802f26d2c323d07d8a89b8f7268 /src/lib/exchange_api_reserves_get.c | |
parent | 97fb6b0091ca089b997febf691be2038223a8d21 (diff) |
rename BANK_excecute_wire_transfer to BANK_transfer, improve error handling when curl_easy_init() fails
Diffstat (limited to 'src/lib/exchange_api_reserves_get.c')
-rw-r--r-- | src/lib/exchange_api_reserves_get.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/exchange_api_reserves_get.c b/src/lib/exchange_api_reserves_get.c index 37adace57..39932d650 100644 --- a/src/lib/exchange_api_reserves_get.c +++ b/src/lib/exchange_api_reserves_get.c @@ -275,6 +275,13 @@ TALER_EXCHANGE_reserves_get (struct TALER_EXCHANGE_Handle *exchange, rgh->url = TEAH_path_to_url (exchange, arg_str); eh = TALER_EXCHANGE_curl_easy_get_ (rgh->url); + if (NULL == eh) + { + GNUNET_break (0); + GNUNET_free (rgh->url); + GNUNET_free (rgh); + return NULL; + } ctx = TEAH_handle_to_context (exchange); rgh->job = GNUNET_CURL_job_add (ctx, eh, |