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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user