diff --git a/psftp.c b/psftp.c index f8a2240e..e41112aa 100644 --- a/psftp.c +++ b/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"); ret = 0; xfer_set_error(xfer); + break; } wpos += wlen; }