From: userwithuid Date: Wed, 25 Apr 2018 08:21:50 +0000 (+0000) Subject: fix logic for setting the curl ca bundle file X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=873006c3735dde1759e291c73f61c8cdebd3a894;p=transmission fix logic for setting the curl ca bundle file we do not want to delete the system default by setting this to NULL... --- diff --git a/libtransmission/web.c b/libtransmission/web.c index df27a0175..9fd49ae03 100644 --- a/libtransmission/web.c +++ b/libtransmission/web.c @@ -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 {