From edda7e02672cf82947c9e3e761a1926a4e4ed5ee Mon Sep 17 00:00:00 2001 From: FUJISHIMA Satsuki Date: Tue, 9 Aug 2005 05:48:32 +0000 Subject: 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 Approved by: portmgr (marcus) --- ftp/wget/Makefile | 2 +- ftp/wget/files/patch-src_ftp.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ftp/wget/files/patch-src_ftp.c (limited to 'ftp') diff --git a/ftp/wget/Makefile b/ftp/wget/Makefile index 5988986bf399..9ec0cd6b2952 100644 --- a/ftp/wget/Makefile +++ b/ftp/wget/Makefile @@ -7,7 +7,7 @@ PORTNAME= wget DISTVERSION= 1.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp www ipv6 MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= wget 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) -- cgit v1.2.3