1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 12:44:38 +01:00

SFTP: remove $start = $offset line

$start isn't used anywhere in the function
This commit is contained in:
terrafrost 2013-05-08 10:20:35 -05:00
parent 0bdf39c83b
commit 63ec6e2055

View File

@ -1649,7 +1649,6 @@ class Net_SFTP extends Net_SSH2 {
}
$size = (1 << 20) < $length || $length < 0 ? 1 << 20 : $length;
$start = $offset;
while (true) {
$packet = pack('Na*N3', strlen($handle), $handle, 0, $offset, $size);
if (!$this->_send_sftp_packet(NET_SFTP_READ, $packet)) {
@ -2205,4 +2204,4 @@ class Net_SFTP extends Net_SSH2 {
$this->pwd = false;
parent::_disconnect($reason);
}
}
}