From 82c44586893d4688f13b08428065e5e82e78ed0a Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 27 Jun 2007 16:13:54 +0000 Subject: Only pass option_ca_bundle and option_ca_path to cURL if they are non-empty. svn path=/trunk/netsurf/; revision=3372 --- content/fetchers/fetch_curl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/fetchers/fetch_curl.c') 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 */ -- cgit v1.2.3