mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
SSH2: fix channel constant
This commit is contained in:
parent
7b2097c6bd
commit
2f3ca7123d
@ -2814,8 +2814,8 @@ class SSH2
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->channel_status[NET_SSH2_CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_REQUEST;
|
$this->channel_status[self::CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_REQUEST;
|
||||||
if (!$this->_get_channel_packet(NET_SSH2_CHANNEL_EXEC)) {
|
if (!$this->_get_channel_packet(self::CHANNEL_EXEC)) {
|
||||||
user_error('Unable to request pseudo-terminal');
|
user_error('Unable to request pseudo-terminal');
|
||||||
return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
|
return $this->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user