projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Having laboriously constructed a hints parameter for getaddrinfo, it
[u/mdw/putty]
/
unix
/
uxnet.c
diff --git
a/unix/uxnet.c
b/unix/uxnet.c
index
5cf7008
..
13b616b
100644
(file)
--- 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;