mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:13:32 +03:00
Immanuel Gregoire fixed a problem with persistent transfers over SFTP - the
previous proto struct was kept.
This commit is contained in:
parent
2694b970e8
commit
f58ba5ab1c
3 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue