aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-06-18 08:21:27 +0000
committerNick Mathewson <nickm@torproject.org>2006-06-18 08:21:27 +0000
commit9376d901ed8a7f7fffa8cef8d67624154eb6f077 (patch)
tree1fd55429cc5cd728ad8d2c10415761a02a454cc6 /src/or/buffers.c
parent4d02ccfed8147da81cd511e148b0d67c40e60f32 (diff)
downloadtor-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.c2
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;
}
}