diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-18 16:20:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-18 16:20:38 +0000 |
commit | 5ba72d0ae5ea661531a50d4318fd06075e868a4c (patch) | |
tree | 086be8575afab9b07391b9750b262d393ae0d003 | |
parent | b5c599412f33a2e2a1643e4b0f0c05471b5ae7a1 (diff) | |
download | tor-5ba72d0ae5ea661531a50d4318fd06075e868a4c.tar.gz tor-5ba72d0ae5ea661531a50d4318fd06075e868a4c.zip |
another write_to_buf_zlib fix.
svn:r6656
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index e344b1e584..e3e3ab21b7 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -1305,7 +1305,7 @@ write_to_buf_zlib(buf_t *buf, tor_zlib_state_t *state, if (next < buf->cur) old_avail = avail = buf->cur - next; else - old_avail = avail = (buf->mem + buf->datalen) - buf->cur; + old_avail = avail = (buf->mem + buf->datalen) - next; switch (tor_zlib_process(state, &next, &avail, &data, &data_len, done)) { case TOR_ZLIB_DONE: over = 1; |