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/auditor_api_deposit_confirmation.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/auditor_api_deposit_confirmation.c') diff --git a/src/lib/auditor_api_deposit_confirmation.c b/src/lib/auditor_api_deposit_confirmation.c index b2126230a..eb84aeadc 100644 --- a/src/lib/auditor_api_deposit_confirmation.c +++ b/src/lib/auditor_api_deposit_confirmation.c @@ -360,6 +360,11 @@ TALER_AUDITOR_deposit_confirmation ( dh->cb_cls = cb_cls; dh->url = TALER_AUDITOR_path_to_url_ (auditor, "/deposit-confirmation"); + if (NULL == dh->url) + { + GNUNET_free (dh); + return NULL; + } eh = TALER_AUDITOR_curl_easy_get_ (dh->url); if ( (NULL == eh) || -- cgit v1.2.3