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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user