diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-12 05:03:50 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-12 05:03:50 +0000 |
commit | 0faab62cd96a671f9018bd9cb8e23daf7eb3344f (patch) | |
tree | 813a57559d5c95476320cb236f48ff1c14665acf /src | |
parent | 90e0ad517e1f1cd98f523922f7b55d2a8c0a3af5 (diff) | |
download | tor-0faab62cd96a671f9018bd9cb8e23daf7eb3344f.tar.gz tor-0faab62cd96a671f9018bd9cb8e23daf7eb3344f.zip |
Resolve FIXMES: sometimes an error code is just an error code
svn:r2805
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index fccb2ddaa4..329b3b4de0 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -949,10 +949,7 @@ int connection_handle_write(connection_t *conn) { } if(e) { /* some sort of error, but maybe just inprogress still */ - errno = e; /* XXX008 this is a kludge. maybe we should rearrange - our error-hunting functions? E.g. pass errno to - tor_socket_errno(). */ - if(!ERRNO_IS_CONN_EINPROGRESS(tor_socket_errno(conn->s))) { + if(!ERRNO_IS_CONN_EINPROGRESS(e)) { log_fn(LOG_INFO,"in-progress connect failed. Removing."); connection_close_immediate(conn); connection_mark_for_close(conn); @@ -1445,7 +1442,6 @@ void assert_connection_ok(connection_t *conn, time_t now) case CONN_TYPE_CONTROL: tor_assert(conn->state >= _CONTROL_CONN_STATE_MIN); tor_assert(conn->state <= _CONTROL_CONN_STATE_MAX); - /* XXXX009 NM */ break; default: tor_assert(0); |