diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 89e57487..87d07517 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2314,6 +2314,10 @@ class Net_SSH2 } } + if (!count($newargs)) { + return false; + } + foreach ($newargs as $arg) { if ($this->_login_helper($username, $arg)) { return true;