1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

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
This commit is contained in:
Who? Me?!
2019-07-01 12:03:06 -05:00
committed by Will Cosgrove
parent 7d2c21c527
commit bc564e9167

View File

@@ -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;
}