mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-20 04:28:07 -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:
parent
c1d3784a52
commit
3669401216
@ -152,7 +152,7 @@ SockAddr sk_namelookup(const char *host, char **canonicalname, int address_famil
|
|||||||
hints.ai_addr = NULL;
|
hints.ai_addr = NULL;
|
||||||
hints.ai_canonname = NULL;
|
hints.ai_canonname = NULL;
|
||||||
hints.ai_next = NULL;
|
hints.ai_next = NULL;
|
||||||
err = getaddrinfo(host, NULL, NULL, &ret->ai);
|
err = getaddrinfo(host, NULL, &hints, &ret->ai);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
ret->error = gai_strerror(err);
|
ret->error = gai_strerror(err);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user