mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 18:02:58 +00:00
fix _precheck
This commit is contained in:
parent
c9e4944370
commit
19e7737ead
@ -329,14 +329,6 @@ class Net_SFTP extends Net_SSH2
|
||||
*/
|
||||
var $partial_init = false;
|
||||
|
||||
/**
|
||||
* Has the SFTP channel been fully negotiated?
|
||||
*
|
||||
* @var bool
|
||||
* @access private
|
||||
*/
|
||||
var $full_init = false;
|
||||
|
||||
/**
|
||||
* Default Constructor.
|
||||
*
|
||||
@ -515,7 +507,7 @@ class Net_SFTP extends Net_SSH2
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$this->full_init) {
|
||||
if ($this->pwd === false) {
|
||||
return $this->_init_sftp_connection();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user