James Housley fixed SCP downloading by setting the maxdownload.
This commit is contained in:
parent
a46f55b9de
commit
9ea3831c08
@ -560,6 +560,7 @@ CURLcode Curl_scp_do(struct connectdata *conn, bool *done)
|
|||||||
}
|
}
|
||||||
/* download data */
|
/* download data */
|
||||||
bytecount = (curl_off_t) sb.st_size;
|
bytecount = (curl_off_t) sb.st_size;
|
||||||
|
conn->data->reqdata.maxdownload = (curl_off_t) sb.st_size;
|
||||||
res = Curl_setup_transfer(conn, FIRSTSOCKET,
|
res = Curl_setup_transfer(conn, FIRSTSOCKET,
|
||||||
bytecount, FALSE, NULL, -1, NULL);
|
bytecount, FALSE, NULL, -1, NULL);
|
||||||
}
|
}
|
||||||
|
@ -2344,8 +2344,8 @@ CURLcode Curl_perform(struct SessionHandle *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Curl_setup_transfer() is called to setup some basic properties for the upcoming
|
* Curl_setup_transfer() is called to setup some basic properties for the
|
||||||
* transfer.
|
* upcoming transfer.
|
||||||
*/
|
*/
|
||||||
CURLcode
|
CURLcode
|
||||||
Curl_setup_transfer(
|
Curl_setup_transfer(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user