]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r17407@catbus: nickm | 2007-12-27 00:18:31 -0500
authorNick Mathewson <nickm@torproject.org>
Thu, 27 Dec 2007 05:18:36 +0000 (05:18 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 27 Dec 2007 05:18:36 +0000 (05:18 +0000)
 Fix windows compile error

svn:r12995

src/or/buffers.c

index 9ee3cfe8dcf223126479f3ab6503c5264207f646..a308255a41d773512f4a9a2871c74284a15c4d83 100644 (file)
@@ -506,7 +506,7 @@ read_to_chunk(buf_t *buf, chunk_t *chunk, int fd, size_t at_most,
   tor_assert(CHUNK_REMAINING_CAPACITY(chunk) >= at_most);
   read_result = tor_socket_recv(fd, CHUNK_WRITE_PTR(chunk), at_most, 0);
   if (read_result < 0) {
-    int e = tor_socket_errno(s);
+    int e = tor_socket_errno(fd);
     if (!ERRNO_IS_EAGAIN(e)) { /* it's a real error */
 #ifdef MS_WINDOWS
       if (e == WSAENOBUFS)