From a34a4edac586c8f425daba605fd2b1604ef8ae90 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 28 Sep 2019 12:57:33 -0500 Subject: [PATCH] SSH2: arcfour128 / arcfour256 was being included twice --- phpseclib/Net/SSH2.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } }