mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
channel: Use the correct timeout option in channel_open().
BUG: https://red.libssh.org/issues/124
This commit is contained in:
@@ -312,7 +312,11 @@ static int channel_open(ssh_channel channel, const char *type_c, int window,
|
|||||||
type_c, channel->local_channel);
|
type_c, channel->local_channel);
|
||||||
pending:
|
pending:
|
||||||
/* wait until channel is opened by server */
|
/* wait until channel is opened by server */
|
||||||
err = ssh_handle_packets_termination(session, SSH_TIMEOUT_USER, ssh_channel_open_termination, channel);
|
err = ssh_handle_packets_termination(session,
|
||||||
|
SSH_TIMEOUT_DEFAULT,
|
||||||
|
ssh_channel_open_termination,
|
||||||
|
channel);
|
||||||
|
|
||||||
if (session->session_state == SSH_SESSION_STATE_ERROR)
|
if (session->session_state == SSH_SESSION_STATE_ERROR)
|
||||||
err = SSH_ERROR;
|
err = SSH_ERROR;
|
||||||
end:
|
end:
|
||||||
|
Reference in New Issue
Block a user