summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_refreshes_reveal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/exchange_api_refreshes_reveal.c')
-rw-r--r--src/lib/exchange_api_refreshes_reveal.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c
index e551b482..d0ca605a 100644
--- a/src/lib/exchange_api_refreshes_reveal.c
+++ b/src/lib/exchange_api_refreshes_reveal.c
@@ -466,7 +466,12 @@ TALER_EXCHANGE_refreshes_reveal (
rrh->md = md;
rrh->url = TEAH_path_to_url (rrh->exchange,
arg_str);
-
+ if (NULL == rrh->url)
+ {
+ json_decref (reveal_obj);
+ GNUNET_free (rrh);
+ return NULL;
+ }
eh = TALER_EXCHANGE_curl_easy_get_ (rrh->url);
if ( (NULL == eh) ||
(GNUNET_OK !=