aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/wget/files
diff options
context:
space:
mode:
authorsf <sf@FreeBSD.org>2005-08-09 13:48:32 +0800
committersf <sf@FreeBSD.org>2005-08-09 13:48:32 +0800
commitb5275ca978e5df922cb998e95fd148580aa53cf6 (patch)
treebe680c2c68086ab12f28d7c87b5ff3f59c848540 /ftp/wget/files
parentd4d3b1827faa92a7d5ff2dcbc19b5218f2418df0 (diff)
downloadfreebsd-ports-gnome-b5275ca978e5df922cb998e95fd148580aa53cf6.tar.gz
freebsd-ports-gnome-b5275ca978e5df922cb998e95fd148580aa53cf6.tar.zst
freebsd-ports-gnome-b5275ca978e5df922cb998e95fd148580aa53cf6.zip
Don't free RESPLINE if ftp_response returns a status other than FTPOK.
This fix has been applied into wget subversion repository. PR: 84666 Submitted by: Vasil Dimov <vd@datamax.bg> Approved by: portmgr (marcus)
Diffstat (limited to 'ftp/wget/files')
-rw-r--r--ftp/wget/files/patch-src_ftp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ftp/wget/files/patch-src_ftp.c b/ftp/wget/files/patch-src_ftp.c
new file mode 100644
index 000000000000..dcf81347f24f
--- /dev/null
+++ b/ftp/wget/files/patch-src_ftp.c
@@ -0,0 +1,12 @@
+Index: src/ftp.c
+===================================================================
+--- src/ftp.c (revision 2038)
++++ src/ftp.c (working copy)
+@@ -1023,7 +1023,6 @@
+ err = ftp_response (csock, &respline);
+ if (err != FTPOK)
+ {
+- xfree (respline);
+ /* The control connection is decidedly closed. Print the time
+ only if it hasn't already been printed. */
+ if (res != -1)