diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-08 23:05:10 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-01-08 23:05:10 +0100 |
commit | 514ab6eed2b520d14a1dce783e3180db11f460a4 (patch) | |
tree | a17bcf8d1fbf2e042e33062415d0125c300e1ae1 /libssh/auth.c | |
parent | c41e3a8e68322e7cfea7afb6160b8af285f6ab47 (diff) | |
download | libssh-514ab6eed2b520d14a1dce783e3180db11f460a4.tar.gz libssh-514ab6eed2b520d14a1dce783e3180db11f460a4.tar.xz libssh-514ab6eed2b520d14a1dce783e3180db11f460a4.zip |
Fixed blocking bug in channel_poll
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/auth.c b/libssh/auth.c index badf1519..aea7b60b 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -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: |