mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
Fixed blocking bug in channel_poll
This commit is contained in:
@@ -61,7 +61,7 @@ static int ask_userauth(ssh_session session) {
|
||||
do {
|
||||
rc=ssh_service_request(session,"ssh-userauth");
|
||||
if(rc==SSH_AGAIN)
|
||||
ssh_handle_packets(session);
|
||||
ssh_handle_packets(session,-1);
|
||||
} while(rc==SSH_AGAIN);
|
||||
leave_function();
|
||||
return rc;
|
||||
@@ -202,7 +202,7 @@ static int wait_auth_status(ssh_session session) {
|
||||
enter_function();
|
||||
|
||||
while (session->auth_state == SSH_AUTH_STATE_NONE) {
|
||||
ssh_handle_packets(session);
|
||||
ssh_handle_packets(session,-1);
|
||||
}
|
||||
switch(session->auth_state){
|
||||
case SSH_AUTH_STATE_ERROR:
|
||||
|
||||
Reference in New Issue
Block a user