]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Several people have spotted an uninitialised structure member leading to a
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 26 Apr 2009 22:19:30 +0000 (22:19 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 26 Apr 2009 22:19:30 +0000 (22:19 +0000)
potential crash on "reget" in Unix PSFTP.

[originally from svn r8516]

unix/uxsftp.c

index a9af614fa59eae163c20befa4a3bfd5cda1a1e73..b26c4b5a6dd6b26c382b633c8148349328db718f 100644 (file)
@@ -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;