diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-18 08:21:27 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-18 08:21:27 +0000 |
commit | 9376d901ed8a7f7fffa8cef8d67624154eb6f077 (patch) | |
tree | 1fd55429cc5cd728ad8d2c10415761a02a454cc6 /src/or/buffers.c | |
parent | 4d02ccfed8147da81cd511e148b0d67c40e60f32 (diff) | |
download | tor-9376d901ed8a7f7fffa8cef8d67624154eb6f077.tar.gz tor-9376d901ed8a7f7fffa8cef8d67624154eb6f077.zip |
make zlib buffer function set buf_highwater properly
svn:r6648
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 25f0a1f646..c0db35ea41 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -1331,6 +1331,8 @@ write_to_buf_zlib(buf_t *buf, tor_zlib_state_t *state, break; } buf->datalen += old_avail - avail; + if (buf->datalen > buf->highwater) + buf->highwater = buf->datalen; buf_total_used += old_avail - avail; } } |