X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/50d7e054c78fa501c82f66a351fa76b4896d2111..2e8324fc5624af5e4d3de5955bf781cf8a7c027c:/psftp.c diff --git a/psftp.c b/psftp.c index f4c254a5..0cf01bee 100644 --- a/psftp.c +++ b/psftp.c @@ -406,7 +406,6 @@ int sftp_cmd_put(struct sftp_command *cmd) { fp = fopen(fname, "rb"); if (!fp) { printf("local: unable to open %s\n", fname); - fxp_close(fh); sfree(outfname); return 0; } @@ -590,6 +589,7 @@ void do_sftp(void) { fprintf(stderr, "Fatal: unable to initialise SFTP: %s\n", fxp_error()); + return; } /*