fix logic for setting the curl ca bundle file

we do not want to delete the system default by setting this to NULL...
This commit is contained in:
userwithuid 2018-04-25 08:21:50 +00:00
parent 444f15edf8
commit 873006c373
1 changed files with 4 additions and 1 deletions

View File

@ -196,7 +196,10 @@ static CURL* createEasy(tr_session* s, struct tr_web* web, struct tr_web_task* t
if (web->curl_ssl_verify)
{
curl_easy_setopt(e, CURLOPT_CAINFO, web->curl_ca_bundle);
if (web->curl_ca_bundle != NULL)
{
curl_easy_setopt(e, CURLOPT_CAINFO, web->curl_ca_bundle);
}
}
else
{