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:
parent
444f15edf8
commit
873006c373
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue