1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

session: Use defines for ssh_handle_packets().

This commit is contained in:
Andreas Schneider
2011-09-17 10:37:16 +02:00
parent 544747d02c
commit afa56e0102
4 changed files with 10 additions and 6 deletions

View File

@@ -687,8 +687,12 @@ pending:
session->session_state = SSH_SESSION_STATE_ERROR;
}
}
else
ssh_handle_packets_termination(session, 0, ssh_connect_termination, session);
else {
ssh_handle_packets_termination(session,
SSH_TIMEOUT_NONBLOCKING,
ssh_connect_termination,
session);
}
ssh_log(session,SSH_LOG_PACKET,"ssh_connect: Actual state : %d",session->session_state);
if(!ssh_is_blocking(session) && !ssh_connect_termination(session)){
leave_function();