aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-26 13:30:41 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-26 13:34:40 +0200
commitf2e08e8d7b1d90615c4a019a8568b727a9c0f013 (patch)
tree4ad22e442e7d625618c615258d78037f0c17e51d
parent26e624c1b7fe7dee02e5e8abeb89dac82c97811f (diff)
downloadlibssh-f2e08e8d7b1d90615c4a019a8568b727a9c0f013.tar.gz
libssh-f2e08e8d7b1d90615c4a019a8568b727a9c0f013.tar.xz
libssh-f2e08e8d7b1d90615c4a019a8568b727a9c0f013.zip
auth: Fix ssh_userauth_agent_publickey pending state.
-rw-r--r--src/auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth.c b/src/auth.c
index 8ce20ff..4b88df5 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -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;