diff options
Diffstat (limited to 'src/lib/exchange_api_link.c')
-rw-r--r-- | src/lib/exchange_api_link.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/exchange_api_link.c b/src/lib/exchange_api_link.c index 5deecadaf..7f29b3b8c 100644 --- a/src/lib/exchange_api_link.c +++ b/src/lib/exchange_api_link.c @@ -468,6 +468,11 @@ TALER_EXCHANGE_link (struct TALER_EXCHANGE_Handle *exchange, lh->coin_priv = *coin_priv; lh->url = TEAH_path_to_url (exchange, arg_str); + if (NULL == lh->url) + { + GNUNET_free (lh); + return NULL; + } eh = TALER_EXCHANGE_curl_easy_get_ (lh->url); if (NULL == eh) { |