1
1

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
Этот коммит содержится в:
Who? Me?! 2019-07-01 12:03:06 -05:00 коммит произвёл Will Cosgrove
родитель 7d2c21c527
Коммит bc564e9167

Просмотреть файл

@ -236,6 +236,7 @@ _libssh2_channel_open(LIBSSH2_SESSION * session, const char *channel_type,
return NULL; return NULL;
} }
else if(rc) { else if(rc) {
_libssh2_error(session, rc, "Unexpected error");
goto channel_error; goto channel_error;
} }