diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index ce135152..ae53fbed 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -4598,10 +4598,7 @@ class Net_SSH2 switch ($algo) { case 'arcfour128': case 'arcfour256': - if ($engine == CRYPT_ENGINE_INTERNAL) { - $algos = array_diff($algos, array($algo)); - $ciphers[] = $algo; - } else { + if ($engine != CRYPT_ENGINE_INTERNAL) { continue 2; } }