From bb8bd6e97962274fcb2ba919473733ad326ccd85 Mon Sep 17 00:00:00 2001 From: jacob Date: Sun, 26 Apr 2009 22:19:30 +0000 Subject: [PATCH] Several people have spotted an uninitialised structure member leading to a potential crash on "reget" in Unix PSFTP. git-svn-id: svn://svn.tartarus.org/sgt/putty@8516 cda61777-01e9-0310-a592-d414129be87e --- unix/uxsftp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/uxsftp.c b/unix/uxsftp.c index a9af614f..b26c4b5a 100644 --- a/unix/uxsftp.c +++ b/unix/uxsftp.c @@ -202,6 +202,7 @@ WFile *open_existing_wfile(char *name, uint64 *size) ret = snew(WFile); ret->fd = fd; + ret->name = dupstr(name); if (size) { struct stat statbuf; -- 2.11.0