Skip to content
Snippets Groups Projects
Commit edac0d1d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Only set CURLOPT_CAINFO if CURL_CA_BUNDLE is set

parent f6642257
No related branches found
No related tags found
No related merge requests found
......@@ -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"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment