From ca5f0c4d6f2969bfbde9d8cb5fc7f90a95c3d712 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 5 Mar 2021 21:41:55 +0100 Subject: fix #6786: do not die on bogus URL --- src/lib/exchange_api_withdraw2.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/exchange_api_withdraw2.c') diff --git a/src/lib/exchange_api_withdraw2.c b/src/lib/exchange_api_withdraw2.c index 30439a599..585cd9215 100644 --- a/src/lib/exchange_api_withdraw2.c +++ b/src/lib/exchange_api_withdraw2.c @@ -464,6 +464,12 @@ TALER_EXCHANGE_withdraw2 ( TALER_B2S (&wh->reserve_pub)); wh->url = TEAH_path_to_url (exchange, arg_str); + if (NULL == wh->url) + { + json_decref (withdraw_obj); + GNUNET_free (wh); + return NULL; + } { CURL *eh; struct GNUNET_CURL_Context *ctx; -- cgit v1.2.3