From 19e47863de300cb330af0fc32469c3d448e042ce Mon Sep 17 00:00:00 2001 From: Jacob Nevins 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. [originally from svn r8516] --- 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.45.2