revno: 2452
svn revno: 2506 (on /trunk)
committer: scribe
timestamp: Sat 2010-03-20 11:49:54 +0000
message:
applied Karl's patch to fix libcurl problem with status reporter data.
Index: sword/src/mgr/curlftpt.cpp
===================================================================
--- sword.orig/src/mgr/curlftpt.cpp 2010-03-22 18:22:59.045847934 +0000
+++ sword/src/mgr/curlftpt.cpp 2010-03-22 18:23:02.244846081 +0000
@@ -177,6 +177,9 @@
res = curl_easy_perform(session);
SWLog::getSystemLog()->logDebug("***** Finished performing curl easy action. \n");
+ // it seems CURL tries to use this option data later for some reason, so we unset here
+ curl_easy_setopt(session, CURLOPT_PROGRESSDATA, (void*)NULL);
+
if(CURLE_OK != res) {
retVal = -1;
}