mirror of
https://github.com/curl/curl.git
synced 2025-09-28 23:16:48 +03:00
ssh: fix a download resume point calculation
This commit is contained in:
parent
2271b60b71
commit
bf1c102b80
|
@ -1975,7 +1975,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
||||||
return CURLE_BAD_DOWNLOAD_RESUME;
|
return CURLE_BAD_DOWNLOAD_RESUME;
|
||||||
}
|
}
|
||||||
/* download from where? */
|
/* download from where? */
|
||||||
data->state.resume_from = attrs.filesize - data->state.resume_from;
|
data->state.resume_from += attrs.filesize;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if((curl_off_t)attrs.filesize < data->state.resume_from) {
|
if((curl_off_t)attrs.filesize < data->state.resume_from) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user