[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Ah. That seems to work.
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv30767/src/or
Modified Files:
buffers.c
Log Message:
Ah. That seems to work.
Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/buffers.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -p -d -r1.197 -r1.198
--- buffers.c 18 Jun 2006 16:20:38 -0000 1.197
+++ buffers.c 18 Jun 2006 16:39:26 -0000 1.198
@@ -1305,7 +1305,7 @@ write_to_buf_zlib(buf_t *buf, tor_zlib_s
if (next < buf->cur)
old_avail = avail = buf->cur - next;
else
- old_avail = avail = (buf->mem + buf->datalen) - next;
+ old_avail = avail = (buf->mem + buf->len) - next;
switch (tor_zlib_process(state, &next, &avail, &data, &data_len, done)) {
case TOR_ZLIB_DONE:
over = 1;