Kaydet (Commit) 51b2ebeb authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS kso14 (1.5.16); FILE MERGED

2005/01/18 15:30:18 sb 1.5.16.1: #i40893# Make sure curl is not internally using environment variables like ftp_proxy.
üst daf79528
......@@ -2,9 +2,9 @@
*
* $RCSfile: ftploaderthread.cxx,v $
*
* $Revision: 1.5 $
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2004-12-23 09:41:08 $
* last change: $Author: obo $ $Date: 2005-01-27 11:08:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -129,6 +129,14 @@ CURL* FTPLoaderThread::handle() {
CURL* ret;
if(!(ret = osl_getThreadKeyData(m_threadKey))) {
ret = curl_easy_init();
if (ret != 0) {
// Make sure curl is not internally using environment variables like
// "ftp_proxy":
if (curl_easy_setopt(ret, CURLOPT_PROXY, "") != CURLE_OK) {
curl_easy_cleanup(ret);
ret = 0;
}
}
osl_setThreadKeyData(m_threadKey,static_cast<void*>(ret));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment