]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix sftp_get_file returning success on failed transfers.
authorTim Kosse <tim.kosse@filezilla-project.org>
Wed, 28 Dec 2016 13:59:49 +0000 (14:59 +0100)
committerSimon Tatham <anakin@pobox.com>
Thu, 29 Dec 2016 11:18:03 +0000 (11:18 +0000)
commit57e21d756e22c0f80a8dbccfdbda761aeedfca2f
tree7c99aa55f2bf84f0071c3fae775f8d1f271582a9
parent24a43404b4335a9c037746bc73fab3ffbd4875e1
Fix sftp_get_file returning success on failed transfers.

Due to the return variable 'ret' being shadowed in the transfer loop, errors
in the transfer loop did not affect the final return value of sftp_get_file.
This particularly affects psftp's batch mode (without passing the -be
command-line argument), which would errorneously continue. The solution is
to simply remove the shadowing declaration.
psftp.c