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-06 11:12:02 +0200
commit35686b4822c8a18d1d6715221be91ee67e563bad (patch)
treea64446fa2cdf524f4bb6cea701d94366b82a8a75 /src/auth.c
parent7ccd9c31b33798824b27e4af095b52b9026a1f98 (diff)
downloadlibssh-35686b4822c8a18d1d6715221be91ee67e563bad.tar.gz
libssh-35686b4822c8a18d1d6715221be91ee67e563bad.tar.xz
libssh-35686b4822c8a18d1d6715221be91ee67e563bad.zip
client: Fix another source of endless wait.
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 7122a57..cbdbbd8 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -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;