mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
auth: Cleanup the agent return code.
This commit is contained in:
@@ -1109,11 +1109,9 @@ int ssh_userauth_publickey_auto(ssh_session session,
|
||||
#ifndef _WIN32
|
||||
/* Try authentication with ssh-agent first */
|
||||
rc = ssh_userauth_agent(session, username);
|
||||
if (rc == SSH_AUTH_SUCCESS) {
|
||||
if (rc == SSH_AUTH_SUCCESS || rc == SSH_AUTH_AGAIN) {
|
||||
return rc;
|
||||
}
|
||||
if (rc == SSH_AUTH_AGAIN)
|
||||
return rc;
|
||||
#endif
|
||||
state->state = SSH_AUTH_AUTO_STATE_PUBKEY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user