From 229f6af1ca52cd30a6878af124f6a1cea877037d Mon Sep 17 00:00:00 2001 From: terrafrost Date: Mon, 9 Mar 2020 19:49:20 -0500 Subject: [PATCH] SFTP: re-use SSH2 login method --- phpseclib/Net/SFTP.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index c9244c85..86e8f3d8 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -467,9 +467,7 @@ class Net_SFTP extends Net_SSH2 */ function login($username) { - $args = func_get_args(); - $this->auth[] = $args; - if (!call_user_func_array(array(&$this, '_login'), $args)) { + if (!call_user_func_array(array(&$this, 'parent::login'), func_get_args())) { return false; }