From 36694012169a241db6bceb68d7e0365c6816b9d9 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 9 Jan 2005 11:58:36 +0000 Subject: [PATCH] Having laboriously constructed a hints parameter for getaddrinfo, it would help to _use_ it! [originally from svn r5085] --- unix/uxnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;