~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't forget to initialise ret->ai to NULL in sk_nonamelookup. Was
[sgt/putty]
/
unix
/
uxnet.c
diff --git
a/unix/uxnet.c
b/unix/uxnet.c
index
f1ef98b
..
5cf7008
100644
(file)
--- a/
unix/uxnet.c
+++ b/
unix/uxnet.c
@@
-209,6
+209,9
@@
SockAddr sk_nonamelookup(const char *host)
ret->family = AF_UNSPEC;
strncpy(ret->hostname, host, lenof(ret->hostname));
ret->hostname[lenof(ret->hostname)-1] = '\0';
+#ifndef NO_IPV6
+ ret->ai = NULL;
+#endif
return ret;
}