diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 99920a74..1906a724 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1757,7 +1757,7 @@ class Net_SSH2 function login($username) { if (!($this->bitmap & NET_SSH2_MASK_CONSTRUCTOR)) { - $this->bitmap != NET_SSH2_MASK_CONSTRUCTOR; + $this->bitmap |= NET_SSH2_MASK_CONSTRUCTOR; if (!$this->_connect()) { return false; }