mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
When we get an error writing to a local file, stop the download rather than
pretending we just got -1 bytes. Not actually tested, but it looks pretty obvious. Bug reported by dking wang. [originally from svn r7459]
This commit is contained in:
parent
0a3c07d15e
commit
7df108f2fd
1
psftp.c
1
psftp.c
@ -463,6 +463,7 @@ int sftp_get_file(char *fname, char *outfname, int recurse, int restart)
|
|||||||
printf("error while writing local file\n");
|
printf("error while writing local file\n");
|
||||||
ret = 0;
|
ret = 0;
|
||||||
xfer_set_error(xfer);
|
xfer_set_error(xfer);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
wpos += wlen;
|
wpos += wlen;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user