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

auth: Fix ssh_userauth_agent_publickey pending state.

This commit is contained in:
Andreas Schneider
2011-08-26 13:30:41 +02:00
parent 26e624c1b7
commit f2e08e8d7b

View File

@@ -814,7 +814,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_OFFER_PUBKEY:
case SSH_PENDING_CALL_AUTH_PUBKEY:
goto pending;
default:
ssh_set_error(session,
@@ -919,7 +919,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_OFFER_PUBKEY;
session->pending_call_state = SSH_PENDING_CALL_AUTH_PUBKEY;
rc = packet_send(session);
if (rc == SSH_ERROR) {
return SSH_AUTH_ERROR;