Skip to content

Commit

Permalink
Fix incomplete file downloads in ssh2 sftp_read.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapaioa authored and JacobCallahan committed Sep 6, 2024
1 parent 810d339 commit 5e23057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broker/binds/ssh2.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def sftp_read(self, source, destination=None, return_data=False):
captured_data += data
if return_data:
return captured_data
destination.write_bytes(data)
destination.write_bytes(captured_data)

def sftp_write(self, source, destination=None, ensure_dir=True):
"""Sftp write a local file to a remote destination."""
Expand Down

0 comments on commit 5e23057

Please sign in to comment.