diff options
author | sf <sf@FreeBSD.org> | 2001-08-09 09:35:56 +0800 |
---|---|---|
committer | sf <sf@FreeBSD.org> | 2001-08-09 09:35:56 +0800 |
commit | e201cf147f832cffa95456e5aa87c469d74ad45b (patch) | |
tree | 094a261c8e7aa024548927953f370b310ba78801 /ftp | |
parent | 9ec671e489e0e41ad306fc64703c5f1c8f43d971 (diff) | |
download | freebsd-ports-gnome-e201cf147f832cffa95456e5aa87c469d74ad45b.tar.gz freebsd-ports-gnome-e201cf147f832cffa95456e5aa87c469d74ad45b.tar.zst freebsd-ports-gnome-e201cf147f832cffa95456e5aa87c469d74ad45b.zip |
Fix coredump problem. This patch has been submitted by wget developers.
Submitted by: kris
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/wget-devel/Makefile | 2 | ||||
-rw-r--r-- | ftp/wget-devel/files/patch-host.c | 11 | ||||
-rw-r--r-- | ftp/wget/Makefile | 2 | ||||
-rw-r--r-- | ftp/wget/files/patch-host.c | 11 |
4 files changed, 24 insertions, 2 deletions
diff --git a/ftp/wget-devel/Makefile b/ftp/wget-devel/Makefile index 1d498de7477f..c188e70e41b3 100644 --- a/ftp/wget-devel/Makefile +++ b/ftp/wget-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= wget PORTVERSION= 1.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp www ipv6 MASTER_SITES= ${MASTER_SITE_GNU} \ ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \ diff --git a/ftp/wget-devel/files/patch-host.c b/ftp/wget-devel/files/patch-host.c new file mode 100644 index 000000000000..9495ff9ec250 --- /dev/null +++ b/ftp/wget-devel/files/patch-host.c @@ -0,0 +1,11 @@ +--- src/host.c.orig Thu Aug 9 10:11:56 2001 ++++ src/host.c Thu Aug 9 10:12:27 2001 +@@ -106,7 +106,7 @@ + + hp = gethostbyname2(name, af); + if (!hp) { +- if (inet_pton(af, name, addr) != -1) { ++ if (inet_pton(af, name, addr) == 1) { + switch (af) { + case AF_INET: + socksize = sizeof (struct sockaddr_in); diff --git a/ftp/wget/Makefile b/ftp/wget/Makefile index 1d498de7477f..c188e70e41b3 100644 --- a/ftp/wget/Makefile +++ b/ftp/wget/Makefile @@ -7,7 +7,7 @@ PORTNAME= wget PORTVERSION= 1.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp www ipv6 MASTER_SITES= ${MASTER_SITE_GNU} \ ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \ diff --git a/ftp/wget/files/patch-host.c b/ftp/wget/files/patch-host.c new file mode 100644 index 000000000000..9495ff9ec250 --- /dev/null +++ b/ftp/wget/files/patch-host.c @@ -0,0 +1,11 @@ +--- src/host.c.orig Thu Aug 9 10:11:56 2001 ++++ src/host.c Thu Aug 9 10:12:27 2001 +@@ -106,7 +106,7 @@ + + hp = gethostbyname2(name, af); + if (!hp) { +- if (inet_pton(af, name, addr) != -1) { ++ if (inet_pton(af, name, addr) == 1) { + switch (af) { + case AF_INET: + socksize = sizeof (struct sockaddr_in); |