ports/ftp/wget+ipv6/files/patch-host.c
FUJISHIMA Satsuki 3e081cd251 add wget+ipv6, a bit old wget but capable to speak IPv6.
Due to radical development of wget, KAME patch would always not be released
in short. This port will happily retire when wget aquires ability to speak
IPv6 itself.
2001-12-17 05:15:58 +00:00

11 lines
323 B
C

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