diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 3065dd42..6d0c4762 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2303,6 +2303,10 @@ class SSH2 } } + if (!count($newargs)) { + return false; + } + foreach ($newargs as $arg) { if ($this->_login_helper($username, $arg)) { return true;