mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-06-05 01:42:10 +03:00
server: Fix ssh_execute_server_callbacks() client execution
When the public key auth handler is executed and returns SSH_OK, ssh_execute_server_callbacks() still runs some client callbacks, which may set rc to SSH_AGAIN, which triggers a default reply on auth, denying auth. Signed-off-by: Nicolas Viennot <nicolas@viennot.biz> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
1ef00045dd
commit
754152aa22
@ -309,10 +309,8 @@ static int ssh_execute_server_callbacks(ssh_session session, ssh_message msg){
|
||||
|
||||
if (session->server_callbacks != NULL){
|
||||
rc = ssh_execute_server_request(session, msg);
|
||||
}
|
||||
|
||||
/* This one is in fact a client callback... */
|
||||
if (session->common.callbacks != NULL) {
|
||||
} else if (session->common.callbacks != NULL) {
|
||||
/* This one is in fact a client callback... */
|
||||
rc = ssh_execute_client_request(session, msg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user