]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Improve buffer handling in Windows sk_getaddr() -- we were passing
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 8 Nov 2009 18:25:29 +0000 (18:25 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 8 Nov 2009 18:25:29 +0000 (18:25 +0000)
commit06497952debbf53b9e0269ff649daf34f49d7898
tree6d0f50ae5ee986a1f41571b301426b9cfc725550
parent138ec348448ffbe17527390f69d08d4de161b384
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).

[originally from svn r8737]
windows/winnet.c