diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 44e2487c..0bb6c7b3 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -926,7 +926,7 @@ class Net_SFTP extends Net_SSH2 $error = $this->status_codes[$status]; - if ($this->version > 2 || strlen($response) < 4) { + if ($this->version > 2) { extract(unpack('Nlength', $this->_string_shift($response, 4))); $this->sftp_errors[] = $error . ': ' . $this->_string_shift($response, $length); } else {