mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-09-28 07:09:01 +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;
|
var $partial_init = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* Has the SFTP channel been fully negotiated?
|
|
||||||
*
|
|
||||||
* @var bool
|
|
||||||
* @access private
|
|
||||||
*/
|
|
||||||
var $full_init = false;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default Constructor.
|
* Default Constructor.
|
||||||
*
|
*
|
||||||
@ -515,7 +507,7 @@ class Net_SFTP extends Net_SSH2
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->full_init) {
|
if ($this->pwd === false) {
|
||||||
return $this->_init_sftp_connection();
|
return $this->_init_sftp_connection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user