aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/wget+ipv6/files/patch-host.c
blob: 9495ff9ec2509b393cbb68ef0f2f1875114f91b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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);