mirror of
https://github.com/moparisthebest/curl
synced 2024-10-31 15:45:12 -04:00
Prevent the state machine from getting stuck in SSH_AUTH_HOST_INIT
This commit is contained in:
parent
99e0597c7b
commit
73c13220ee
@ -451,6 +451,8 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
|
|||||||
if ((data->set.ssh_auth_types & CURLSSH_AUTH_HOST) &&
|
if ((data->set.ssh_auth_types & CURLSSH_AUTH_HOST) &&
|
||||||
(strstr(sshc->authlist, "hostbased") != NULL)) {
|
(strstr(sshc->authlist, "hostbased") != NULL)) {
|
||||||
state(conn, SSH_AUTH_HOST);
|
state(conn, SSH_AUTH_HOST);
|
||||||
|
} else {
|
||||||
|
state(conn, SSH_AUTH_KEY_INIT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user