summaryrefslogtreecommitdiff
path: root/src/tool_doswin.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-22 11:16:34 +0200
committerYang Tse <yangsita@gmail.com>2011-09-22 21:21:20 +0200
commitfb3845a438cad9ef09eb1b0b86388ce99a726502 (patch)
treea4ab735d4fc1a4b0646f0b309c0135f228101532 /src/tool_doswin.c
parent3c3aa09c65a6b06b3291f787c1216188ad2d6649 (diff)
downloadcurl-fb3845a438cad9ef09eb1b0b86388ce99a726502.tar.gz
curl tool: reviewed code moved to tool_*.[ch] files
my_setopt and my_setopt_str no longer ignores curl_easy_setopt result. Fixed some OOM handling issues.
Diffstat (limited to 'src/tool_doswin.c')
-rw-r--r--src/tool_doswin.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tool_doswin.c b/src/tool_doswin.c
index 7fab33b80..5250b2cee 100644
--- a/src/tool_doswin.c
+++ b/src/tool_doswin.c
@@ -30,6 +30,7 @@
#ifdef WIN32
# include <curl/curl.h>
# include "tool_cfgable.h"
+# include "tool_libinfo.h"
#endif
#include "tool_bname.h"
@@ -251,10 +252,8 @@ CURLcode FindWin32CACert(struct Configurable *config, const char *bundle_file)
{
CURLcode result = CURLE_OK;
- curl_version_info_data *info = curl_version_info(CURLVERSION_NOW);
-
- /* search and set cert file only if "we" support SSL */
- if(info->features & CURL_VERSION_SSL) {
+ /* search and set cert file only if libcurl supports SSL */
+ if(curlinfo->features & CURL_VERSION_SSL) {
DWORD res_len;
DWORD buf_tchar_size = PATH_MAX + 1;