浏览代码

fixed a critical bug in yesterday's changes to buffers.c
(starting to debug my OP integration)


svn:r18

Roger Dingledine 23 年之前
父节点
当前提交
c603e403df
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/buffers.c

+ 1 - 1
src/or/buffers.c

@@ -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 */
   /* 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 (write_result < 0) {
     if(errno!=EAGAIN) { /* it's a real error */
     if(errno!=EAGAIN) { /* it's a real error */
       return -1;
       return -1;