]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Having laboriously constructed a hints parameter for getaddrinfo, it
authorSimon Tatham <anakin@pobox.com>
Sun, 9 Jan 2005 11:58:36 +0000 (11:58 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 9 Jan 2005 11:58:36 +0000 (11:58 +0000)
would help to _use_ it!

[originally from svn r5085]

unix/uxnet.c

index 5cf70082595bb08867394f303771ccfdad7329f5..13b616b9b9c0e91707f41ddc46ed3275a1292e50 100644 (file)
@@ -152,7 +152,7 @@ SockAddr sk_namelookup(const char *host, char **canonicalname, int address_famil
     hints.ai_addr = NULL;
     hints.ai_canonname = NULL;
     hints.ai_next = NULL;
-    err = getaddrinfo(host, NULL, NULL, &ret->ai);
+    err = getaddrinfo(host, NULL, &hints, &ret->ai);
     if (err != 0) {
        ret->error = gai_strerror(err);
        return ret;