mirror of
https://github.com/curl/curl.git
synced 2026-08-02 03:50:32 +03:00
- Liza Alenchery mentioned a problem with re-used SCP connection when a bad
auth is used, as it caused a crash. I failed to repeat the issue, but still made a change that now forces the TCP connection used for a freed SCP session to get closed and not be re-used.
This commit is contained in:
parent
d68f215f03
commit
a76f4ab7dd
3 changed files with 9 additions and 1 deletions
|
|
@ -2221,6 +2221,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
}
|
||||
sshc->ssh_session = NULL;
|
||||
}
|
||||
conn->bits.close = TRUE;
|
||||
sshc->nextstate = SSH_NO_STATE;
|
||||
state(conn, SSH_STOP);
|
||||
result = sshc->actualcode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue