1
1

channels: allow channel_open() to return SSH_AGAIN

Signed-off-by: Nicolas Viennot <nicolas@viennot.biz>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Nicolas Viennot 2013-06-10 04:40:45 -04:00 коммит произвёл Andreas Schneider
родитель 74bbcf7e29
Коммит 2f674aeec1

Просмотреть файл

@ -313,7 +313,7 @@ static int channel_open(ssh_channel channel, const char *type_c, int window,
pending:
/* wait until channel is opened by server */
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;
end:
if(channel->state == SSH_CHANNEL_STATE_OPEN)