diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-11-07 10:36:20 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-11-07 10:36:20 +0100 |
commit | edac0d1d056180ad7821ac21e09b2b53725b49f2 (patch) | |
tree | 99ea96b404fb3b13e70ed981c75af0b730d1e069 | |
parent | f6642257096c6fe0f78984d989790a3d9e1056fe (diff) |
Only set CURLOPT_CAINFO if CURL_CA_BUNDLE is set
-rw-r--r-- | src/imlib.c | 2 |
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")); |