aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 6645e8e44..4371eb683 100644
--- 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;
}