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