Commit 7788d760 authored by Jakub Jelen's avatar Jakub Jelen

channels: Correctly reports failed channels opening

Signed-off-by: Jakub Jelen's avatarJakub Jelen <[email protected]>
parent c0ca2588
Pipeline #82730892 passed with stage
in 48 minutes and 55 seconds
......@@ -350,8 +350,13 @@ pending:
/* This needs to pass the SSH_AGAIN from the above,
* but needs to catch failed channel states */
if (channel->state == SSH_CHANNEL_STATE_OPEN) {
err = SSH_OK;
} else if (err != SSH_AGAIN) {
/* Messages were handled correctly, but he channel state is invalid */
err = SSH_ERROR;
return err;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment