summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2007-06-27 16:13:54 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2007-06-27 16:13:54 +0000
commit82c44586893d4688f13b08428065e5e82e78ed0a (patch)
treeb596acdc204d3a030d10ec88ac71a58c66693db0
parent31cde5dcdef072377916d81ba9388cf8f2c9e53f (diff)
downloadnetsurf-82c44586893d4688f13b08428065e5e82e78ed0a.tar.gz
netsurf-82c44586893d4688f13b08428065e5e82e78ed0a.tar.bz2
Only pass option_ca_bundle and option_ca_path to cURL if they are non-empty.
svn path=/trunk/netsurf/; revision=3372
-rw-r--r--content/fetchers/fetch_curl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/fetchers/fetch_curl.c b/content/fetchers/fetch_curl.c
index 3d8423b61..1f889b99d 100644
--- a/content/fetchers/fetch_curl.c
+++ b/content/fetchers/fetch_curl.c
@@ -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 */