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
Этот коммит содержится в:
родитель
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user