Merge pull request #593 from userwithuid/fixcurltls

fix logic for setting the curl ca bundle file
This commit is contained in:
Mike Gelfand 2018-04-25 09:57:34 +01:00 committed by GitHub
commit c89cce792d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
{