aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-11-25 09:49:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-11-25 09:49:29 +0000
commit9ea3831c08fab5b320e381b1552964ff789316c7 (patch)
treee8c93446f0e8a94e5f8febca647dbfd24a216b34 /lib
parenta46f55b9de423b4084982467d6f28f69a64ab8f3 (diff)
James Housley fixed SCP downloading by setting the maxdownload.
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c1
-rw-r--r--lib/transfer.c4
2 files changed, 3 insertions, 2 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);
}
diff --git a/lib/transfer.c b/lib/transfer.c
index 28e3fe476..2d5d0dfe8 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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(