From: Roger Dingledine Date: Tue, 2 Jul 2002 06:02:15 +0000 (+0000) Subject: fixed a critical bug in yesterday's changes to buffers.c X-Git-Tag: tor-0.0.2pre8~450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c603e403dfad283506a140177c0d44a4351eacac;p=thirdparty%2Ftor.git fixed a critical bug in yesterday's changes to buffers.c (starting to debug my OP integration) svn:r18 --- diff --git a/src/or/buffers.c b/src/or/buffers.c index 6e851f5e36..cf511f7ad7 100644 --- a/src/or/buffers.c +++ b/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 */ - 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;