From a76f4ab7ddc9e1f75e9df474a07e379982ab46ab Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 30 Oct 2009 22:28:56 +0000 Subject: - 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. --- lib/ssh.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/ssh.c b/lib/ssh.c index eaaa8e69a..0d7f60ee4 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -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; -- cgit v1.2.3