ssh: fix a download resume point calculation

This commit is contained in:
Yang Tse 2010-12-06 05:20:05 +01:00
parent 2271b60b71
commit bf1c102b80

View File

@ -1975,7 +1975,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
return CURLE_BAD_DOWNLOAD_RESUME;
}
/* download from where? */
data->state.resume_from = attrs.filesize - data->state.resume_from;
data->state.resume_from += attrs.filesize;
}
else {
if((curl_off_t)attrs.filesize < data->state.resume_from) {