]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix confirmed win32 bug
authorRoger Dingledine <arma@torproject.org>
Mon, 8 Sep 2003 23:10:24 +0000 (23:10 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 8 Sep 2003 23:10:24 +0000 (23:10 +0000)
svn:r435

src/or/buffers.c

index 1c0c5991489971c0e2d42bf5186e46255eb62887..55bb2279f3bd9693afb93fb74da58afb1f9fb150 100644 (file)
@@ -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