]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fixed a critical bug in yesterday's changes to buffers.c
authorRoger Dingledine <arma@torproject.org>
Tue, 2 Jul 2002 06:02:15 +0000 (06:02 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 2 Jul 2002 06:02:15 +0000 (06:02 +0000)
(starting to debug my OP integration)

svn:r18

src/or/buffers.c

index 6e851f5e36813916439b81a9b3a5f3096ddcc8db..cf511f7ad73aadd448bb2dc74b2f075e8c8bfcad 100644 (file)
@@ -64,7 +64,7 @@ int flush_buf(int s, char **buf, size_t *buflen, size_t *buf_datalen) {
 
   /* this is the point where you would grow the buffer, if you want to */
 
-  write_result = write(s, buf, *buf_datalen);
+  write_result = write(s, *buf, *buf_datalen);
   if (write_result < 0) {
     if(errno!=EAGAIN) { /* it's a real error */
       return -1;