From af85337f5ff052437fa5cf117f3d065488640660 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 5 Aug 2011 03:00:21 +0200 Subject: session: Fix timeout handling. -2 now means to use the timeout specified in options. It wasn't used earlier and poll only knows -1 and 0 anyway for special meanings. --- src/auth1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/auth1.c') diff --git a/src/auth1.c b/src/auth1.c index 06f05497..8b96f8ca 100644 --- a/src/auth1.c +++ b/src/auth1.c @@ -38,7 +38,7 @@ static int wait_auth1_status(ssh_session session) { enter_function(); /* wait for a packet */ while(session->auth_state == SSH_AUTH_STATE_NONE) - if (ssh_handle_packets(session,-1) != SSH_OK) + if (ssh_handle_packets(session, -2) != SSH_OK) break; ssh_log(session,SSH_LOG_PROTOCOL,"Auth state : %d",session->auth_state); leave_function(); -- cgit v1.2.3