mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-02-03 21:52:24 +00:00
Spotted by Tim Kosse: reput on an already complete file was hanging.
Should be fixed now (we only wait for packets if we know there are some that haven't been replied to yet). [originally from svn r3618]
This commit is contained in:
parent
40af5d16a3
commit
e9b9df0fb9
3
psftp.c
3
psftp.c
@ -616,14 +616,15 @@ int sftp_general_put(struct sftp_command *cmd, int restart)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!xfer_done(xfer)) {
|
||||||
pktin = sftp_recv();
|
pktin = sftp_recv();
|
||||||
ret = xfer_upload_gotpkt(xfer, pktin);
|
ret = xfer_upload_gotpkt(xfer, pktin);
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
printf("error while writing: %s\n", fxp_error());
|
printf("error while writing: %s\n", fxp_error());
|
||||||
err = 1;
|
err = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
xfer_cleanup(xfer);
|
xfer_cleanup(xfer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user