diff options
author | fredb <fredb> | 2002-07-25 15:56:19 +0000 |
---|---|---|
committer | fredb <fredb> | 2002-07-25 15:56:19 +0000 |
commit | 6f2f499e038507da1367fca67758b7312edafd26 (patch) | |
tree | a6b6ae44161cf89b6332c6cff536ff601723744e /www/wwwoffle/patches | |
parent | a977bfe3a6b7dc21f61d4aa6bc72b2123fd61e15 (diff) | |
download | pkgsrc-6f2f499e038507da1367fca67758b7312edafd26.tar.gz |
In FTP_Request(), don't free "path" until we're really done with it, as
"file" is in "path"'s allocation. This fixes a bug where the server task
would randomly try to acces a file as a directory, and fail. Bump
PKGREVISION, as this was a fairly serious bug.
Diffstat (limited to 'www/wwwoffle/patches')
-rw-r--r-- | www/wwwoffle/patches/patch-ab | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/wwwoffle/patches/patch-ab b/www/wwwoffle/patches/patch-ab new file mode 100644 index 00000000000..15be8848818 --- /dev/null +++ b/www/wwwoffle/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.9 2002/07/25 15:56:20 fredb Exp $ + +--- src/ftp.c.orig Sun Jun 23 10:04:08 2002 ++++ src/ftp.c +@@ -365,8 +365,6 @@ + return(msg); + } + +- free(path); +- + /* Change directory again to see if file is a dir. */ + + if(file) +@@ -824,6 +822,7 @@ + nbuffer=buffer?strlen(buffer):0; nread=0; + nbuffertail=buffertail?strlen(buffertail):0; nreadtail=0; + ++ free(path); + free(str); + + return(msg); |