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:
Andreas Fischer 2014-03-21 18:27:00 +01:00
commit c6b990432c

View File

@ -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;