mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 10:45:11 +00:00
Merge pull request #297 from terrafrost/ssh-channel-fix-2
fix more ssh channel issues * terrafrost/ssh-channel-fix-2: fix more ssh channel issues
This commit is contained in:
commit
c6b990432c
@ -3144,14 +3144,15 @@ class Net_SSH2
|
|||||||
) - 4;
|
) - 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$temp = $this->_string_shift($data, $max_size);
|
||||||
$packet = pack('CN2a*',
|
$packet = pack('CN2a*',
|
||||||
NET_SSH2_MSG_CHANNEL_DATA,
|
NET_SSH2_MSG_CHANNEL_DATA,
|
||||||
$this->server_channels[$client_channel],
|
$this->server_channels[$client_channel],
|
||||||
$max_size,
|
strlen($temp),
|
||||||
$this->_string_shift($data, $max_size)
|
$temp
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->window_size_client_to_server[$client_channel]-= $max_size + 4;
|
$this->window_size_client_to_server[$client_channel]-= strlen($temp) + 4;
|
||||||
|
|
||||||
if (!$this->_send_binary_packet($packet)) {
|
if (!$this->_send_binary_packet($packet)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user