mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 13:01:59 +01:00
SFTP: don't check SFTP packet size after SFTP initialization
This commit is contained in:
parent
c3560c2d4d
commit
0673370eda
@ -3180,7 +3180,7 @@ class Net_SFTP extends Net_SSH2
|
||||
|
||||
|
||||
// 256 * 1024 is what SFTP_MAX_MSG_LENGTH is set to in OpenSSH's sftp-common.h
|
||||
if ($tempLength > 256 * 1024) {
|
||||
if (!$this->use_request_id && $tempLength > 256 * 1024) {
|
||||
user_error('Invalid SFTP packet size');
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user