From f58ba5ab1cb25b873f46a27a2b0422e3301100ba Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 29 Sep 2007 21:34:34 +0000 Subject: Immanuel Gregoire fixed a problem with persistent transfers over SFTP - the previous proto struct was kept. --- lib/ssh.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/ssh.c') 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; -- cgit v1.2.3