aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Housley <jim@thehousleys.net>2007-06-12 13:47:32 +0000
committerJames Housley <jim@thehousleys.net>2007-06-12 13:47:32 +0000
commit73c13220eeb5865f549a30d1b6ba33ec8544b560 (patch)
tree6e9861b8f2113945c5d92716d721c10d36934df9
parent99e0597c7b74a8be4c85819554b7a1eb447f5ed5 (diff)
Prevent the state machine from getting stuck in SSH_AUTH_HOST_INIT
-rw-r--r--lib/ssh.c2
1 files changed, 2 insertions, 0 deletions
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;