Martin Prikryl points out that we weren't always initialising new "addrinfo"
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 14 Feb 2005 11:43:27 +0000 (11:43 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 14 Feb 2005 11:43:27 +0000 (11:43 +0000)
commit1822a5e7ad65bc02126851835a21a2a2d00b5aaa
tree0fe2d0cadda861329d4a1f0943b4fb2433e48c68
parentb0dd13945d74dc9e6c4747fc917d0cb2b7acba1d
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5297 cda61777-01e9-0310-a592-d414129be87e
windows/winnet.c