summaryrefslogtreecommitdiffstats
path: root/src/auth.c
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2011-08-05 10:30:54 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-07 12:47:23 +0200
commit1204f43ea92dbc57a06a45b9293255104d940705 (patch)
treeb4d77d7706d81ec4f58d9dcb5c2db5781bf799da /src/auth.c
parentb542bc9e4e0cda2d86f6ddf95b31e6b9fbc20a96 (diff)
downloadlibssh-1204f43ea92dbc57a06a45b9293255104d940705.tar.gz
libssh-1204f43ea92dbc57a06a45b9293255104d940705.tar.xz
libssh-1204f43ea92dbc57a06a45b9293255104d940705.zip
client: Fix another source of endless wait.
(cherry picked from commit 35686b4822c8a18d1d6715221be91ee67e563bad)
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.c b/src/auth.c
index af699918..6dda4792 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -254,7 +254,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;