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

auth: Fix public key authentication so we can continue.

This commit is contained in:
Andreas Schneider
2012-01-01 22:51:24 +01:00
parent 0b7b699ced
commit 74f5f43409

View File

@@ -1026,8 +1026,9 @@ int ssh_userauth_agent(ssh_session session,
return SSH_AUTH_SUCCESS; return SSH_AUTH_SUCCESS;
} }
} }
SAFE_FREE(session->agent_state); SAFE_FREE(session->agent_state);
return SSH_AUTH_ERROR; return rc;
} }
#endif #endif
@@ -1198,6 +1199,7 @@ int ssh_userauth_publickey_auto(ssh_session session,
ssh_key_free(state->pubkey); ssh_key_free(state->pubkey);
state->pubkey = NULL; state->pubkey = NULL;
state->it=state->it->next; state->it=state->it->next;
state->state = SSH_AUTH_AUTO_STATE_PUBKEY;
continue; continue;
} }
state->state = SSH_AUTH_AUTO_STATE_PUBKEY_ACCEPTED; state->state = SSH_AUTH_AUTO_STATE_PUBKEY_ACCEPTED;