From bc564e9167aa9a1c1d5928df19d07e51b77a47e6 Mon Sep 17 00:00:00 2001 From: Who? Me?! Date: Mon, 1 Jul 2019 12:03:06 -0500 Subject: [PATCH] Channel.c: Make sure the error code is set in _libssh2_channel_open() (#381) File : Channel.c Notes : if _libssh2_channel_open() fails, set the error code. Credit : mark-i-m --- src/channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/channel.c b/src/channel.c index 7bbeeb8..6e1d0a7 100644 --- a/src/channel.c +++ b/src/channel.c @@ -236,6 +236,7 @@ _libssh2_channel_open(LIBSSH2_SESSION * session, const char *channel_type, return NULL; } else if(rc) { + _libssh2_error(session, rc, "Unexpected error"); goto channel_error; }