]> git.ipfire.org Git - thirdparty/tor.git/commit
Look at the right errno when sending reason for connect() failure
authorNick Mathewson <nickm@torproject.org>
Fri, 25 Mar 2011 20:14:42 +0000 (16:14 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 25 Mar 2011 22:32:28 +0000 (18:32 -0400)
commit6a5b94de6c51478ca638ec03c40a6d3c27f2d674
tree14e4e6dc792d8137beac57bbfda94e2bb99b2295
parent05887f10ffe14498e96c34d2faa535187719689f
Look at the right errno when sending reason for connect() failure

In afe414 (tor-0.1.0.1-rc~173), when we moved to
connection_edge_end_errno(), we used it in handling errors from
connection_connect().  That's not so good, since by the time
connection_connect() returns, the socket is no longer set, and we're
supposed to be looking at the socket_errno return value from
connection_connect() instead.  So do what we should've done, and
look at the socket_errno value that we get from connection_connect().
changes/connect_err_reporting [new file with mode: 0644]
src/or/connection_edge.c