projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sk_nonamelookup() should ensure the sockaddr it returns has `error'
[u/mdw/putty]
/
winnet.c
diff --git
a/winnet.c
b/winnet.c
index
e94075b
..
0b93fcd
100644
(file)
--- a/
winnet.c
+++ b/
winnet.c
@@
-365,6
+365,7
@@
SockAddr sk_namelookup(char *host, char **canonicalname)
SockAddr sk_nonamelookup(char *host)
{
SockAddr ret = smalloc(sizeof(struct SockAddr_tag));
+ ret->error = NULL;
ret->family = AF_UNSPEC;
strncpy(ret->hostname, host, lenof(ret->hostname));
ret->hostname[lenof(ret->hostname)-1] = '\0';