diff options
author | FUJISHIMA Satsuki <sf@FreeBSD.org> | 2005-08-09 05:48:32 +0000 |
---|---|---|
committer | FUJISHIMA Satsuki <sf@FreeBSD.org> | 2005-08-09 05:48:32 +0000 |
commit | edda7e02672cf82947c9e3e761a1926a4e4ed5ee (patch) | |
tree | e1a0204cb96f1567c145652c2fc3a62a6beec1b4 /ftp/wget | |
parent | Fix compilation on FreeBSD 6 or later in the WITH_PTH case. (diff) |
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)
Notes
Notes:
svn path=/head/; revision=140819
Diffstat (limited to 'ftp/wget')
-rw-r--r-- | ftp/wget/Makefile | 2 | ||||
-rw-r--r-- | ftp/wget/files/patch-src_ftp.c | 12 |
2 files changed, 13 insertions, 1 deletions
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) |