aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-02-22 23:32:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-02-22 23:32:02 +0000
commit584dbffe601f823e5d3a3ced0d035b499f1bc903 (patch)
treed3fc2b7df9d7dd38798f6f8a2f2d058948328018 /lib/ftp.c
parent1c6f6f6972e0bf335d4ae3a313039bd00bea6656 (diff)
moved the dynamicly set pointers to the connectdata struct
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 6fd9fd3ac..bd6826e0c 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -493,7 +493,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn)
}
else {
if((-1 != conn->size) && (conn->size != *ftp->bytecountp) &&
- (data->maxdownload != *ftp->bytecountp)) {
+ (conn->maxdownload != *ftp->bytecountp)) {
failf(data, "Received only partial file");
return CURLE_PARTIAL_FILE;
}
@@ -1393,16 +1393,16 @@ again:;
else if(from < 0) {
/* -Y */
totalsize = -from;
- data->maxdownload = -from;
+ conn->maxdownload = -from;
data->resume_from = from;
infof(data, "FTP RANGE the last %d bytes\n", totalsize);
}
else {
/* X-Y */
totalsize = to-from;
- data->maxdownload = totalsize+1; /* include the last mentioned byte */
+ conn->maxdownload = totalsize+1; /* include the last mentioned byte */
data->resume_from = from;
- infof(data, "FTP RANGE from %d getting %d bytes\n", from, data->maxdownload);
+ infof(data, "FTP RANGE from %d getting %d bytes\n", from, conn->maxdownload);
}
infof(data, "range-download from %d to %d, totally %d bytes\n",
from, to, totalsize);