]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Report the right address in connection setup errors.
authorSimon Tatham <anakin@pobox.com>
Sat, 28 Jan 2017 10:56:19 +0000 (10:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 28 Jan 2017 14:03:09 +0000 (14:03 +0000)
commit769ce54734f0359068a72d71bca99da9d5d3555e
treeb99f3fe99509ccae888663334e0add9eb0df6778
parentb73c1c1deb9e0c6080ce27d70191a7242886bea3
Report the right address in connection setup errors.

backend_socket_log was generating the IP address in its error messages
by means of calling sk_getaddr(). But sk_getaddr only gets a SockAddr,
which may contain a whole list of candidate addresses; it doesn't also
get the information stored in the 'step' field of the Socket that was
actually trying to make the connection, which says _which_ of those
addresses we were in the middle of trying to connect to.

So now we construct a temporary SockAddr that points at the
appropriate one of the addresses, and use that for calls to plug_log
during connection setup.
unix/uxnet.c
windows/winnet.c