1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-30 04:39:21 +01:00

SSH2: arcfour128 / arcfour256 was being included twice

This commit is contained in:
terrafrost 2019-09-28 12:57:33 -05:00
parent ee2ac9f818
commit a34a4edac5

View File

@ -4598,10 +4598,7 @@ class Net_SSH2
switch ($algo) { switch ($algo) {
case 'arcfour128': case 'arcfour128':
case 'arcfour256': case 'arcfour256':
if ($engine == CRYPT_ENGINE_INTERNAL) { if ($engine != CRYPT_ENGINE_INTERNAL) {
$algos = array_diff($algos, array($algo));
$ciphers[] = $algo;
} else {
continue 2; continue 2;
} }
} }