aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 2c3220658..cdf351c59 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -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);
}