Skip to content
Snippets Groups Projects
Commit 9ea3831c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

James Housley fixed SCP downloading by setting the maxdownload.

parent a46f55b9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -2344,8 +2344,8 @@ CURLcode Curl_perform(struct SessionHandle *data)
}
/*
* Curl_setup_transfer() is called to setup some basic properties for the upcoming
* transfer.
* Curl_setup_transfer() is called to setup some basic properties for the
* upcoming transfer.
*/
CURLcode
Curl_setup_transfer(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment