mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
ssh: initialize per-handle data in ssh_connect()
... if not already initialized. This fixes a regression introduced by
commit 4ad8e142da
, which caused test619
to intermittently fail on certain machines (namely Fedora build hosts).
This commit is contained in:
parent
ae495ffcc3
commit
f70b2c77f4
@ -2725,6 +2725,10 @@ static CURLcode ssh_connect(struct connectdata *conn, bool *done)
|
|||||||
CURLcode result;
|
CURLcode result;
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
|
|
||||||
|
/* initialize per-handle data if not already */
|
||||||
|
if(!data->req.protop)
|
||||||
|
ssh_setup_connection(conn);
|
||||||
|
|
||||||
/* We default to persistent connections. We set this already in this connect
|
/* We default to persistent connections. We set this already in this connect
|
||||||
function to make the re-use checks properly be able to check this bit. */
|
function to make the re-use checks properly be able to check this bit. */
|
||||||
conn->bits.close = FALSE;
|
conn->bits.close = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user