]> granicus.if.org Git - transmission/commitdiff
fix logic for setting the curl ca bundle file
authoruserwithuid <userwithuid@gmail.com>
Wed, 25 Apr 2018 08:21:50 +0000 (08:21 +0000)
committeruserwithuid <userwithuid@gmail.com>
Wed, 25 Apr 2018 08:21:50 +0000 (08:21 +0000)
we do not want to delete the system default by setting this to NULL...

libtransmission/web.c

index df27a0175dcec261652f1c7d0339aee405a5fbc6..9fd49ae03eb454c8f31c9179743fbcf371bb00df 100644 (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
     {