1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

auth: different code for auth_agent

This commit is contained in:
Aris Adamantiadis
2011-09-08 20:56:38 +02:00
parent ae89dfd6f2
commit 28bfc7645c
2 changed files with 3 additions and 2 deletions

View File

@@ -778,7 +778,7 @@ static int ssh_userauth_agent_publickey(ssh_session session,
switch(session->pending_call_state) {
case SSH_PENDING_CALL_NONE:
break;
case SSH_PENDING_CALL_AUTH_PUBKEY:
case SSH_PENDING_CALL_AUTH_AGENT:
goto pending;
default:
ssh_set_error(session,
@@ -883,7 +883,7 @@ static int ssh_userauth_agent_publickey(ssh_session session,
}
session->auth_state = SSH_AUTH_STATE_NONE;
session->pending_call_state = SSH_PENDING_CALL_AUTH_PUBKEY;
session->pending_call_state = SSH_PENDING_CALL_AUTH_AGENT;
rc = packet_send(session);
if (rc == SSH_ERROR) {
return SSH_AUTH_ERROR;