mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
make zlib buffer function set buf_highwater properly
svn:r6648
This commit is contained in:
parent
4d02ccfed8
commit
9376d901ed
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user