projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
... and here's the rest of r6820. Ahem.
[u/mdw/putty]
/
windows
/
winnet.c
diff --git
a/windows/winnet.c
b/windows/winnet.c
index
715c492
..
47ac8b2
100644
(file)
--- a/
windows/winnet.c
+++ b/
windows/winnet.c
@@
-356,6
+356,7
@@
SockAddr sk_namelookup(const char *host, char **canonicalname,
#ifndef NO_IPV6
ret->ai = ret->ais = NULL;
#endif
#ifndef NO_IPV6
ret->ai = ret->ais = NULL;
#endif
+ ret->addresses = NULL;
ret_family = AF_UNSPEC;
*realhost = '\0';
ret_family = AF_UNSPEC;
*realhost = '\0';
@@
-456,6
+457,7
@@
SockAddr sk_nonamelookup(const char *host)
#ifndef NO_IPV6
ret->ai = ret->ais = NULL;
#endif
#ifndef NO_IPV6
ret->ai = ret->ais = NULL;
#endif
+ ret->addresses = NULL;
ret->naddresses = 0;
strncpy(ret->hostname, host, lenof(ret->hostname));
ret->hostname[lenof(ret->hostname)-1] = '\0';
ret->naddresses = 0;
strncpy(ret->hostname, host, lenof(ret->hostname));
ret->hostname[lenof(ret->hostname)-1] = '\0';