channels: allow channel_open() to return SSH_AGAIN
Signed-off-by: Nicolas Viennot <nicolas@viennot.biz> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
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)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user