aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-05-01 20:46:28 +0000
committerNick Mathewson <nickm@torproject.org>2004-05-01 20:46:28 +0000
commit908ccb9dcdff19c6015a31726d2db5db5fef3ede (patch)
tree087a63bb6c490291ec12ae4f2e6f5c3dfc984ca4 /src/or/connection_or.c
parentac4cb9bdd19bee938d1cb4cb9def727f92c8d2fc (diff)
downloadtor-908ccb9dcdff19c6015a31726d2db5db5fef3ede.tar
tor-908ccb9dcdff19c6015a31726d2db5db5fef3ede.tar.gz
Handle windows socket errors correctly; comment most of common.
svn:r1756
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index bb6eb1367..02ee368a0 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -49,7 +49,7 @@ int connection_or_finished_flushing(connection_t *conn) {
switch(conn->state) {
case OR_CONN_STATE_CONNECTING:
if (getsockopt(conn->s, SOL_SOCKET, SO_ERROR, (void*)&e, &len) < 0) { /* not yet */
- if(!ERRNO_CONN_EINPROGRESS(errno)){
+ if(!ERRNO_IS_CONN_EINPROGRESS(tor_socket_errno(conn->s))) {
log_fn(LOG_DEBUG,"in-progress connect failed. Removing.");
connection_mark_for_close(conn,0);
return -1;