[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] channels: allow channel_open() to return SSH_AGAIN
[Thread Prev] | [Thread Next]
- Subject: [PATCH 1/2] channels: allow channel_open() to return SSH_AGAIN
- From: Nicolas Viennot <nicolas@xxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 10 Jun 2013 04:40:45 -0400
- To: libssh@xxxxxxxxxx
- Cc: Nicolas Viennot <nicolas@xxxxxxxxxxx>
Signed-off-by: Nicolas Viennot <nicolas@xxxxxxxxxxx> --- src/channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channels.c b/src/channels.c index 6e9b2eb..902e04b 100644 --- a/src/channels.c +++ b/src/channels.c @@ -314,7 +314,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) -- 1.8.2.1
[PATCH 2/2] session: ssh_handle_packets_termination() SSH_AGAIN bug fix | Nicolas Viennot <nicolas@xxxxxxxxxxx> |
Re: [PATCH 1/2] channels: allow channel_open() to return SSH_AGAIN | Andreas Schneider <asn@xxxxxxxxxxxxxx> |