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_deposits_get.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/exchange_api_deposits_get.c') diff --git a/src/lib/exchange_api_deposits_get.c b/src/lib/exchange_api_deposits_get.c index ab689b5c..b4bcfbcd 100644 --- a/src/lib/exchange_api_deposits_get.c +++ b/src/lib/exchange_api_deposits_get.c @@ -373,6 +373,11 @@ TALER_EXCHANGE_deposits_get ( dwh->cb_cls = cb_cls; dwh->url = TEAH_path_to_url (exchange, arg_str); + if (NULL == dwh->url) + { + GNUNET_free (dwh); + return NULL; + } dwh->depconf.purpose.size = htonl (sizeof (struct TALER_ConfirmWirePS)); dwh->depconf.purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_CONFIRM_WIRE); dwh->depconf.h_wire = *h_wire; -- cgit v1.2.3