From 35686b4822c8a18d1d6715221be91ee67e563bad Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 5 Aug 2011 10:30:54 +0200 Subject: client: Fix another source of endless wait. --- src/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/auth.c') diff --git a/src/auth.c b/src/auth.c index 7122a577..cbdbbd8f 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; -- cgit