aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auth.c b/src/auth.c
index 19a0b2e..e620f98 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -678,13 +678,13 @@ int ssh_userauth_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,
SSH_FATAL,
"Bad call during pending SSH call in ssh_userauth_try_pubkey");
- return SSH_ERROR;
+ return SSH_AUTH_ERROR;
}
rc = ssh_userauth_request_service(session);
@@ -783,7 +783,7 @@ int ssh_userauth_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;