]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
- Duncan Mac-Vicar Prett and Michal Marek reported problems with resetting
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Feb 2007 15:37:05 +0000 (15:37 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Feb 2007 15:37:05 +0000 (15:37 +0000)
  CURLOPT_RANGE back to no range on an easy handle when using FTP.

CHANGES
RELEASE-NOTES
lib/ftp.c

diff --git a/CHANGES b/CHANGES
index 284ed1b59ab9b8ab6118f0d19d2d1a47b8617348..c7097881c76726188d593b1af5da1ff3c0023a92 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                   Changelog
 
+Daniel (16 February 2007)
+- Duncan Mac-Vicar Prett and Michal Marek reported problems with resetting
+  CURLOPT_RANGE back to no range on an easy handle when using FTP.
+
 Dan F (14 February 2007)
 - Fixed curl-config --libs so it doesn't list unnecessary libraries (and
   therefore introduce unnecessary dependencies) when it's not needed.
index 598f7e32eaad4b0857a529382e6b98bc02ccd4a8..b19c551e751b862057c3a402f49cf3e210fe4d00 100644 (file)
@@ -22,6 +22,7 @@ This release includes the following bugfixes:
  o in testsuite, update test cookies expiration from 2007-Feb-1 to year 2035 
  o socks5 works
  o builds fine with VC2005
+ o CURLOPT_RANGE set to NULL resets the range for FTP
 
 This release includes the following known bugs:
 
@@ -39,6 +40,6 @@ This release would not have looked like this without help, code, reports and
 advice from friends like these:
 
  Yang Tse, Manfred Schwarb, Michael Wallner, Jeff Pohlmeyer, Shmulik Regev,
- Rob Crittenden, Robert A. Monat
+ Rob Crittenden, Robert A. Monat, Duncan Mac-Vicar Prett, Michal Marek
 
         Thanks! (and sorry if I forgot to mention someone)
index 6645e8e44beec1a70790a0058f4d6f3b3a968199..4371eb6833091acdfb2dde2cd7cc20ba281b5634 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3285,6 +3285,8 @@ static CURLcode ftp_range(struct connectdata *conn)
                  from, to, data->reqdata.maxdownload));
     ftpc->dont_check = TRUE; /* dont check for successful transfer */
   }
+  else
+    data->reqdata.maxdownload = -1;
   return CURLE_OK;
 }