projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Windows's sk_address_is_local() was returning the wrong answers for
[u/mdw/putty]
/
windows
/
winnet.c
diff --git
a/windows/winnet.c
b/windows/winnet.c
index
2088f9d
..
c82959a
100644
(file)
--- a/
windows/winnet.c
+++ b/
windows/winnet.c
@@
-645,7
+645,7
@@
int sk_address_is_local(SockAddr addr)
#ifndef NO_IPV6
if (family == AF_INET6) {
#ifndef NO_IPV6
if (family == AF_INET6) {
- return IN6_IS_ADDR_LOOPBACK(
(const struct in6_addr *)step.ai->ai
_addr);
+ return IN6_IS_ADDR_LOOPBACK(
&((const struct sockaddr_in6 *)step.ai->ai_addr)->sin6
_addr);
} else
#endif
if (family == AF_INET) {
} else
#endif
if (family == AF_INET) {