Fixed blocking bug in channel_poll

This commit is contained in:
Aris Adamantiadis
2010-01-08 23:05:10 +01:00
parent c41e3a8e68
commit 514ab6eed2
7 changed files with 26 additions and 21 deletions

View File

@@ -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: