From: simon Date: Sun, 9 Jan 2005 11:58:36 +0000 (+0000) Subject: Having laboriously constructed a hints parameter for getaddrinfo, it X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/72b364a8a94e6c1f60c43aaef2f7c187b44f7d56 Having laboriously constructed a hints parameter for getaddrinfo, it would help to _use_ it! git-svn-id: svn://svn.tartarus.org/sgt/putty@5085 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/uxnet.c b/unix/uxnet.c index 5cf70082..13b616b9 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -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;