projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a46f55b
)
James Housley fixed SCP downloading by setting the maxdownload.
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 25 Nov 2006 09:49:29 +0000
(09:49 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 25 Nov 2006 09:49:29 +0000
(09:49 +0000)
lib/ssh.c
patch
|
blob
|
history
lib/transfer.c
patch
|
blob
|
history
diff --git
a/lib/ssh.c
b/lib/ssh.c
index
2c32206
..
cdf351c
100644
(file)
--- 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
28e3fe4
..
2d5d0df
100644
(file)
--- 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(