Fix coredump problem. This patch has been submitted by wget developers.

Submitted by:	kris
This commit is contained in:
FUJISHIMA Satsuki 2001-08-09 01:35:56 +00:00
parent 108b885c03
commit de73824db9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45996
4 changed files with 24 additions and 2 deletions

View File

@ -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/ \

View File

@ -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);

View File

@ -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/ \

View File

@ -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);