summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-11-07 10:36:20 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-11-07 10:36:20 +0100
commitedac0d1d056180ad7821ac21e09b2b53725b49f2 (patch)
tree99ea96b404fb3b13e70ed981c75af0b730d1e069
parentf6642257096c6fe0f78984d989790a3d9e1056fe (diff)
Only set CURLOPT_CAINFO if CURL_CA_BUNDLE is set
-rw-r--r--src/imlib.c2
1 files changed, 1 insertions, 1 deletions
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"));