mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +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;
|
||||
int rc = SSH_ERROR;
|
||||
|
||||
enter_function();
|
||||
|
||||
if (channel == NULL) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
session = channel->session;
|
||||
|
||||
enter_function();
|
||||
|
||||
if(remotehost == NULL || sourcehost == NULL) {
|
||||
ssh_set_error_invalid(session, __FUNCTION__);
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user