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/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server.c') diff --git a/src/server.c b/src/server.c index 9877ed86..6ee16e0f 100644 --- a/src/server.c +++ b/src/server.c @@ -479,7 +479,7 @@ int ssh_handle_key_exchange(ssh_session session) { * loop until SSH_SESSION_STATE_BANNER_RECEIVED or * SSH_SESSION_STATE_ERROR */ - ssh_handle_packets(session,-1); + ssh_handle_packets(session, -2); ssh_log(session,SSH_LOG_PACKET, "ssh_handle_key_exchange: Actual state : %d", session->session_state); } -- cgit v1.2.3