]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Martin Prikryl points out that we weren't always initialising new "addrinfo"
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 14 Feb 2005 11:43:27 +0000 (11:43 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 14 Feb 2005 11:43:27 +0000 (11:43 +0000)
commit63784f3f9a5423230ee690496c167788c0fcd775
tree0fe2d0cadda861329d4a1f0943b4fb2433e48c68
parent63c26e722a84497734bf212dcb8a66212142797d
Martin Prikryl points out that we weren't always initialising new "addrinfo"
members of Windows SockAddr_tag; particular in sk_nonamelookup() (proxy
resolution at far end) this was causing trouble.

Make sure they _always_ start out NULL (since the Windows getaddrinfo()
documentation doesn't make any claims about initialisation), and also
initialise 'naddresses' in sk_nonamelookup() for good measure.

[originally from svn r5297]
windows/winnet.c