1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

Having laboriously constructed a hints parameter for getaddrinfo, it

would help to _use_ it!

[originally from svn r5085]
This commit is contained in:
Simon Tatham 2005-01-09 11:58:36 +00:00
parent c1d3784a52
commit 3669401216

View 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;