summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-16 18:02:11 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-16 18:02:11 (GMT)
commit0488236e3af7e8119ceef9236041970721b7fe90 (patch)
tree7d23a28c0d969a24ef1ed125ddb419211c24f60d /Source
parent5dfa7ed590577e15b47bbbc11d3c15d5e722f3c7 (diff)
downloadCMake-0488236e3af7e8119ceef9236041970721b7fe90.zip
CMake-0488236e3af7e8119ceef9236041970721b7fe90.tar.gz
CMake-0488236e3af7e8119ceef9236041970721b7fe90.tar.bz2
Try to fix aix problem
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestSubmit.cxx44
1 files changed, 22 insertions, 22 deletions
diff --git a/Source/CTest/cmCTestSubmit.cxx b/Source/CTest/cmCTestSubmit.cxx
index 6fc5f26..d3ef0ae 100644
--- a/Source/CTest/cmCTestSubmit.cxx
+++ b/Source/CTest/cmCTestSubmit.cxx
@@ -291,31 +291,31 @@ bool cmCTestSubmit::TriggerUsingHTTP(const std::vector<std::string>& files,
/* In windows, this will init the winsock stuff */
::curl_global_init(CURL_GLOBAL_ALL);
- /* get a curl handle */
- curl = curl_easy_init();
- if(curl)
+ std::string::size_type cc, kk;
+ for ( cc = 0; cc < files.size(); cc ++ )
{
- // Using proxy
- if ( m_HTTPProxyType > 0 )
+ /* get a curl handle */
+ curl = curl_easy_init();
+ if(curl)
{
- curl_easy_setopt(curl, CURLOPT_PROXY, m_HTTPProxy.c_str());
- switch (m_HTTPProxyType)
+ // Using proxy
+ if ( m_HTTPProxyType > 0 )
{
- case 2:
- curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
- break;
- case 3:
- curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- break;
- default:
- curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
+ curl_easy_setopt(curl, CURLOPT_PROXY, m_HTTPProxy.c_str());
+ switch (m_HTTPProxyType)
+ {
+ case 2:
+ curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
+ break;
+ case 3:
+ curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
+ break;
+ default:
+ curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
+ }
}
- }
- curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
- std::string::size_type cc, kk;
- for ( cc = 0; cc < files.size(); cc ++ )
- {
+ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
std::string file = remoteprefix + files[cc];
std::string ofile = "";
for ( kk = 0; kk < file.size(); kk ++ )
@@ -352,9 +352,9 @@ bool cmCTestSubmit::TriggerUsingHTTP(const std::vector<std::string>& files,
::curl_global_cleanup();
return false;
}
+ // always cleanup
+ ::curl_easy_cleanup(curl);
}
- // always cleanup
- ::curl_easy_cleanup(curl);
}
::curl_global_cleanup();
return true;