mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:43:52 +03:00
James Housley fixed SCP downloading by setting the maxdownload.
This commit is contained in:
parent
a46f55b9de
commit
9ea3831c08
2 changed files with 3 additions and 2 deletions
|
|
@ -560,6 +560,7 @@ CURLcode Curl_scp_do(struct connectdata *conn, bool *done)
|
|||
}
|
||||
/* download data */
|
||||
bytecount = (curl_off_t) sb.st_size;
|
||||
conn->data->reqdata.maxdownload = (curl_off_t) sb.st_size;
|
||||
res = Curl_setup_transfer(conn, FIRSTSOCKET,
|
||||
bytecount, FALSE, NULL, -1, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue