aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-09-29 21:34:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-09-29 21:34:34 +0000
commitf58ba5ab1cb25b873f46a27a2b0422e3301100ba (patch)
tree06388e9f836fd5cd314020678d579d3267056ef2
parent2694b970e87c06462bf83e8d98ade7c90d7b52a3 (diff)
Immanuel Gregoire fixed a problem with persistent transfers over SFTP - the
previous proto struct was kept.
-rw-r--r--CHANGES3
-rw-r--r--RELEASE-NOTES1
-rw-r--r--lib/ssh.c5
3 files changed, 9 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index fb3646be9..a53e60f8e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
Changelog
+Daniel S (29 September 2007)
+- Immanuel Gregoire fixed a problem with persistent transfers over SFTP.
+
Daniel S (28 September 2007)
- Adapted the c-ares code to the API change c-ares 1.5.0 brings in the
notifier callback(s).
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index c6e666dec..5618ae502 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -27,6 +27,7 @@ This release includes the following bugfixes:
o --ftp-method nocwd on directory listings
o FTP, CURLOPT_NOBODY enabled and CURLOPT_HEADER disabled now does TYPE
before SIZE
+ o persistent transfers over SFTP
This release includes the following known bugs:
diff --git a/lib/ssh.c b/lib/ssh.c
index b7da3bff3..d56eb855c 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -1765,6 +1765,11 @@ CURLcode Curl_ssh_connect(struct connectdata *conn, bool *done)
CURLcode result;
struct SessionHandle *data = conn->data;
+ if (data->reqdata.proto.ssh) {
+ Curl_safefree(data->reqdata.proto.ssh);
+ data->reqdata.proto.ssh = NULL;
+ }
+
result = ssh_init(conn);
if (result)
return result;