commit c8a07345235becde44717fb50b44d851eca8f400
parent 7869fda07fd3ccd810ed5c1494ae817df323a846
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 13 Dec 2024 15:11:39 +0100
handle eh allocation failure
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/restclient/anastasis_api_policy_lookup.c b/src/restclient/anastasis_api_policy_lookup.c
@@ -282,6 +282,13 @@ ANASTASIS_policy_lookup (
NULL);
GNUNET_free (path);
eh = ANASTASIS_curl_easy_get_ (plo->url);
+ if (NULL == eh)
+ {
+ GNUNET_break (0);
+ GNUNET_free (plo->url);
+ GNUNET_free (plo);
+ return NULL;
+ }
GNUNET_assert (CURLE_OK ==
curl_easy_setopt (eh,
CURLOPT_HEADERFUNCTION,