aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-08 23:10:24 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-08 23:10:24 +0000
commitc0f5ddcf33c82c85278ca027de65bfde585b7da2 (patch)
treedb3b47715b5217eb319f4f543ceb976b4e5ea1ef /src
parent0bac4247cabfd790fe470f08d8f11c663ae7db06 (diff)
downloadtor-c0f5ddcf33c82c85278ca027de65bfde585b7da2.tar
tor-c0f5ddcf33c82c85278ca027de65bfde585b7da2.tar.gz
fix confirmed win32 bug
svn:r435
Diffstat (limited to 'src')
-rw-r--r--src/or/buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 1c0c59914..55bb2279f 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -58,7 +58,7 @@ int read_to_buf(int s, int at_most, char **buf, int *buflen, int *buf_datalen, i
}
#ifdef MS_WINDOWS
e = correct_socket_errno(s);
- if(!ERRNO_EAGAIN(errno)) { /* no, it *is* a real error! */
+ if(!ERRNO_EAGAIN(e)) { /* no, it *is* a real error! */
return -1;
}
#endif
@@ -116,7 +116,7 @@ int flush_buf(int s, char **buf, int *buflen, int *buf_flushlen, int *buf_datale
}
#ifdef MS_WINDOWS
e = correct_socket_errno(s);
- if(!ERRNO_EAGAIN(errno)) { /* no, it *is* a real error! */
+ if(!ERRNO_EAGAIN(e)) { /* no, it *is* a real error! */
return -1;
}
#endif