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