Fix coredump problem. This patch has been submitted by wget developers.
Submitted by: kris
This commit is contained in:
parent
108b885c03
commit
de73824db9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45996
@ -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/ \
|
||||
|
11
ftp/wget-devel/files/patch-host.c
Normal file
11
ftp/wget-devel/files/patch-host.c
Normal 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);
|
@ -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/ \
|
||||
|
11
ftp/wget/files/patch-host.c
Normal file
11
ftp/wget/files/patch-host.c
Normal 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);
|
Loading…
Reference in New Issue
Block a user