mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-04-02 15:21:51 +00:00
Merge pull request #596 from bantu/disconnect-fix-php5
SSH2: update conditions under which _disconnect's code is executed * bantu/disconnect-fix-php5: NET_SSH2_ -> self::
This commit is contained in:
commit
520fdcdd29
@ -3277,7 +3277,7 @@ class SSH2
|
||||
*/
|
||||
function _disconnect($reason)
|
||||
{
|
||||
if ($this->bitmap & NET_SSH2_MASK_CONNECTED) {
|
||||
if ($this->bitmap & self::MASK_CONNECTED) {
|
||||
$data = pack('CNNa*Na*', NET_SSH2_MSG_DISCONNECT, $reason, 0, '', 0, '');
|
||||
$this->_send_binary_packet($data);
|
||||
$this->bitmap = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user