Skip to content

Commit

Permalink
SFTP: return false if get_channel_packet returns false
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Jul 5, 2021
1 parent 973bb07 commit a02526e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phpseclib/Net/SFTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -3169,6 +3169,9 @@ function _get_sftp_packet($request_id = null)
$this->packet_buffer = '';
return false;
}
if ($temp === false) {
return false;
}
$this->packet_buffer.= $temp;
}
if (strlen($this->packet_buffer) < 4) {
Expand Down

1 comment on commit a02526e

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1678

Please sign in to comment.