From 73c13220eeb5865f549a30d1b6ba33ec8544b560 Mon Sep 17 00:00:00 2001 From: James Housley Date: Tue, 12 Jun 2007 13:47:32 +0000 Subject: Prevent the state machine from getting stuck in SSH_AUTH_HOST_INIT --- lib/ssh.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ssh.c') diff --git a/lib/ssh.c b/lib/ssh.c index 214c16098..28fe1ffe7 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -451,6 +451,8 @@ static CURLcode ssh_statemach_act(struct connectdata *conn) if ((data->set.ssh_auth_types & CURLSSH_AUTH_HOST) && (strstr(sshc->authlist, "hostbased") != NULL)) { state(conn, SSH_AUTH_HOST); + } else { + state(conn, SSH_AUTH_KEY_INIT); } break; -- cgit v1.2.3