1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

channels: allow channel_open() to return SSH_AGAIN

Signed-off-by: Nicolas Viennot <nicolas@viennot.biz>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Nicolas Viennot
2013-06-10 04:40:45 -04:00
committed by Andreas Schneider
parent 74bbcf7e29
commit 2f674aeec1

View File

@@ -313,7 +313,7 @@ static int channel_open(ssh_channel channel, const char *type_c, int window,
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_USER, ssh_channel_open_termination, channel);
if (err != SSH_OK || session->session_state == SSH_SESSION_STATE_ERROR) if (session->session_state == SSH_SESSION_STATE_ERROR)
err = SSH_ERROR; err = SSH_ERROR;
end: end:
if(channel->state == SSH_CHANNEL_STATE_OPEN) if(channel->state == SSH_CHANNEL_STATE_OPEN)