Merge branch 'master' into php5

* master:
  fix more ssh channel issues
This commit is contained in:
Andreas Fischer 2014-03-21 18:27:13 +01:00
commit 483b8a7d3c

View File

@ -3144,14 +3144,15 @@ class Net_SSH2
) - 4;
}
$temp = $this->_string_shift($data, $max_size);
$packet = pack('CN2a*',
NET_SSH2_MSG_CHANNEL_DATA,
$this->server_channels[$client_channel],
$max_size,
$this->_string_shift($data, $max_size)
strlen($temp),
$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)) {
return false;