diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 2162b9c7..0a847d07 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2218,6 +2218,10 @@ class SSH2 } } + if (!count($newargs)) { + return false; + } + foreach ($newargs as $arg) { if ($this->login_helper($username, $arg)) { return true;