make zlib buffer function set buf_highwater properly

svn:r6648
This commit is contained in:
Nick Mathewson 2006-06-18 08:21:27 +00:00
parent 4d02ccfed8
commit 9376d901ed

View File

@ -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;
}
}