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_curl_defaults.c | |
parent | 97fb6b0091ca089b997febf691be2038223a8d21 (diff) | |
download | exchange-a9b3c564bdd80ad6d3db0d0c493144956c64368d.tar.xz |
rename BANK_excecute_wire_transfer to BANK_transfer, improve error handling when curl_easy_init() fails
Diffstat (limited to 'src/lib/exchange_api_curl_defaults.c')
-rw-r--r-- | src/lib/exchange_api_curl_defaults.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/exchange_api_curl_defaults.c b/src/lib/exchange_api_curl_defaults.c index 26c1ac7df..82d3ace13 100644 --- a/src/lib/exchange_api_curl_defaults.c +++ b/src/lib/exchange_api_curl_defaults.c @@ -24,8 +24,8 @@ /** - * Get a curl handle with the right defaults - * for the exchange lib. In the future, we might manage a pool of connections here. + * Get a curl handle with the right defaults for the exchange lib. In the + * future, we might manage a pool of connections here. * * @param url URL to query */ @@ -35,6 +35,8 @@ TALER_EXCHANGE_curl_easy_get_ (const char *url) CURL *eh; eh = curl_easy_init (); + if (NULL == eh) + return NULL; GNUNET_assert (CURLE_OK == curl_easy_setopt (eh, CURLOPT_URL, |