]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix segfault (should free act.buf not act.name, because the latter
authorSimon Tatham <anakin@pobox.com>
Wed, 29 Aug 2001 08:56:26 +0000 (08:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 29 Aug 2001 08:56:26 +0000 (08:56 +0000)
might not point at the start of the former). Cheers Minefield :-)

[originally from svn r1224]

scp.c

diff --git a/scp.c b/scp.c
index b741092d01feeb433d11f788d2d211f055b0f141..f92485dbda3f9a0a41285e25d48d5a7bf02fa72d 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -1883,7 +1883,7 @@ static void sink(char *targ, char *src)
        }
        (void) scp_finish_filerecv();
        sfree(destfname);
-       sfree(act.name);
+       sfree(act.buf);
     }
 }