auth: Cleanup the agent return code.
Этот коммит содержится в:
родитель
6306bee86c
Коммит
5d05aec2ef
@ -1107,13 +1107,11 @@ int ssh_userauth_publickey_auto(ssh_session session,
|
|||||||
state = session->auth_auto_state;
|
state = session->auth_auto_state;
|
||||||
if (state->state == SSH_AUTH_AUTO_STATE_NONE) {
|
if (state->state == SSH_AUTH_AUTO_STATE_NONE) {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
/* Try authentication with ssh-agent first */
|
/* Try authentication with ssh-agent first */
|
||||||
rc = ssh_userauth_agent(session, username);
|
rc = ssh_userauth_agent(session, username);
|
||||||
if (rc == SSH_AUTH_SUCCESS) {
|
if (rc == SSH_AUTH_SUCCESS || rc == SSH_AUTH_AGAIN) {
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
if (rc == SSH_AUTH_AGAIN)
|
|
||||||
return rc;
|
|
||||||
#endif
|
#endif
|
||||||
state->state = SSH_AUTH_AUTO_STATE_PUBKEY;
|
state->state = SSH_AUTH_AUTO_STATE_PUBKEY;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user