mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
channel: Fixed uninitialized use of session.
This commit is contained in:
@@ -909,14 +909,14 @@ int ssh_channel_open_forward(ssh_channel channel, const char *remotehost,
|
|||||||
ssh_string str = NULL;
|
ssh_string str = NULL;
|
||||||
int rc = SSH_ERROR;
|
int rc = SSH_ERROR;
|
||||||
|
|
||||||
enter_function();
|
|
||||||
|
|
||||||
if (channel == NULL) {
|
if (channel == NULL) {
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
session = channel->session;
|
session = channel->session;
|
||||||
|
|
||||||
|
enter_function();
|
||||||
|
|
||||||
if(remotehost == NULL || sourcehost == NULL) {
|
if(remotehost == NULL || sourcehost == NULL) {
|
||||||
ssh_set_error_invalid(session, __FUNCTION__);
|
ssh_set_error_invalid(session, __FUNCTION__);
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
Reference in New Issue
Block a user