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 {