Improve buffer handling in Windows sk_getaddr() -- we were passing
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 8 Nov 2009 18:25:29 +0000 (18:25 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 8 Nov 2009 18:25:29 +0000 (18:25 +0000)
commit1c51badd393b183d62b45a9a83db56e0b0601086
tree6d0f50ae5ee986a1f41571b301426b9cfc725550
parent438015cc66d33c0cc29996de8724acb57c2e4324
Improve buffer handling in Windows sk_getaddr() -- we were passing
uninitialised storage into WSAAddressToString()'s length function (and
presumably getting away with it by luck).
Also improve error handling (exposed by my Wine installation, which returns
an error from WSAAddressToString() for connections to localhost for some
reason).

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