summaryrefslogtreecommitdiffstats
path: root/src/auth1.c
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2011-08-05 03:00:21 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-07 12:47:09 +0200
commit61a97ccedef470e587798fee52fb011e8d9c323a (patch)
tree180a8cb7a5976adb205474c3e9e400b2658d8b7e /src/auth1.c
parenta1ef27c0b882d0791ab29584f015d1f8bee44996 (diff)
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. (cherry picked from commit af85337f5ff052437fa5cf117f3d065488640660)
Diffstat (limited to 'src/auth1.c')
-rw-r--r--src/auth1.c2
1 files changed, 1 insertions, 1 deletions
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();