IPv4 numeric addresses were broken thanks to IPv6 patch
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 9 Jan 2001 17:25:06 +0000 (17:25 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 9 Jan 2001 17:25:06 +0000 (17:25 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@854 cda61777-01e9-0310-a592-d414129be87e

winnet.c

index 2cde075..88fbae0 100644 (file)
--- a/winnet.c
+++ b/winnet.c
@@ -273,6 +273,11 @@ SockAddr sk_namelookup(char *host, char **canonicalname)
     }
     else
     {
+        /*
+         * Hack inserted to deal with problems with numeric IPs.
+         * FIXME: how will this work in IPv6?
+         */
+        ret->family = AF_INET;
        *canonicalname = host;
     }
     ret->address = ntohl(a);