summaryrefslogtreecommitdiffstats
path: root/src/auth1.c
diff options
context:
space:
mode:
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 06f0549..8b96f8c 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();