From edac0d1d056180ad7821ac21e09b2b53725b49f2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Nov 2017 10:36:20 +0100 Subject: Only set CURLOPT_CAINFO if CURL_CA_BUNDLE is set --- src/imlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imlib.c b/src/imlib.c index abdef4e..5b96e8a 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -429,7 +429,7 @@ static char *feh_http_load_image(char *url) if (opt.insecure_ssl) { curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0); - } else { + } else if (getenv("CURL_CA_BUNDLE") != NULL) { // Allow the user to specify custom CA certificates. curl_easy_setopt(curl, CURLOPT_CAINFO, getenv("CURL_CA_BUNDLE")); -- cgit v1.2.3