mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-15 14:04:22 +03:00
Only pass option_ca_bundle and option_ca_path to cURL if they are non-empty.
svn path=/trunk/netsurf/; revision=3372
This commit is contained in:
parent
31cde5dcde
commit
82c4458689
@ -1342,9 +1342,9 @@ void register_curl_fetchers(void)
|
||||
SETOPT(CURLOPT_NOSIGNAL, 1L);
|
||||
SETOPT(CURLOPT_CONNECTTIMEOUT, 30L);
|
||||
|
||||
if (option_ca_bundle)
|
||||
if (option_ca_bundle && strcmp(option_ca_bundle, ""))
|
||||
SETOPT(CURLOPT_CAINFO, option_ca_bundle);
|
||||
if (option_ca_path)
|
||||
if (option_ca_path && strcmp(option_ca_path, ""))
|
||||
SETOPT(CURLOPT_CAPATH, option_ca_path);
|
||||
|
||||
/* cURL initialised okay, register the fetchers */
|
||||
|
Loading…
x
Reference in New Issue
Block a user