]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
James Housley fixed SCP downloading by setting the maxdownload.
authorDaniel Stenberg <daniel@haxx.se>
Sat, 25 Nov 2006 09:49:29 +0000 (09:49 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 25 Nov 2006 09:49:29 +0000 (09:49 +0000)
lib/ssh.c
lib/transfer.c

index 2c3220658c512c0e4aff7f024de2d1f84e5a5161..cdf351c599d30fc6678ba16525a1fa2a1826c033 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);
   }
index 28e3fe47625f876d9093c6f6bda156d0e743b1d6..2d5d0dfe8c260b2808206e824e7e05f2bcc8f874 100644 (file)
@@ -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(