auth1: Reset error state to no error.

This fixes bug #89.
This commit is contained in:
Andreas Schneider
2012-10-22 18:01:39 +02:00
parent 04f1d950b9
commit 26579b2231

View File

@@ -108,6 +108,7 @@ static int send_username(ssh_session session, const char *username) {
if(wait_auth1_status(session) == SSH_AUTH_SUCCESS){
session->auth_service_state=SSH_AUTH_SERVICE_USER_SENT;
session->auth_state=SSH_AUTH_STATE_SUCCESS;
ssh_set_error(session, SSH_NO_ERROR, "Authentication successful");
return SSH_AUTH_SUCCESS;
} else {
session->auth_service_state=SSH_AUTH_SERVICE_USER_SENT;