mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
client: Fix another source of endless wait.
This commit is contained in:
committed by
Andreas Schneider
parent
7ccd9c31b3
commit
35686b4822
@@ -255,7 +255,7 @@ static int wait_auth_status(ssh_session session) {
|
||||
enter_function();
|
||||
|
||||
if(ssh_is_blocking(session)){
|
||||
if(ssh_handle_packets_termination(session,-1,auth_status_termination,
|
||||
if(ssh_handle_packets_termination(session, -2, auth_status_termination,
|
||||
session) == SSH_ERROR){
|
||||
leave_function();
|
||||
return SSH_AUTH_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user