[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] channels: allow channel_open() to return SSH_AGAIN


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


Archive administrator: postmaster@lists.cynapses.org