summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e414a33)
value on error, so the check at the call site shouldn't test for
exactly zero.
git-svn-id: svn://svn.tartarus.org/sgt/putty@8183
cda61777-01e9-0310-a592-
d414129be87e
if (!xfer_done(xfer)) {
pktin = sftp_recv();
ret = xfer_upload_gotpkt(xfer, pktin);
if (!xfer_done(xfer)) {
pktin = sftp_recv();
ret = xfer_upload_gotpkt(xfer, pktin);
+ if (ret <= 0 && !err) {
printf("error while writing: %s\n", fxp_error());
err = 1;
}
printf("error while writing: %s\n", fxp_error());
err = 1;
}