mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-20 04:28:07 -05:00
Fix a potential segfault
[originally from svn r958]
This commit is contained in:
parent
a680cef1b2
commit
d226659a12
1
psftp.c
1
psftp.c
@ -406,7 +406,6 @@ int sftp_cmd_put(struct sftp_command *cmd) {
|
|||||||
fp = fopen(fname, "rb");
|
fp = fopen(fname, "rb");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
printf("local: unable to open %s\n", fname);
|
printf("local: unable to open %s\n", fname);
|
||||||
fxp_close(fh);
|
|
||||||
sfree(outfname);
|
sfree(outfname);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user