mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
another write_to_buf_zlib fix.
svn:r6656
This commit is contained in:
parent
b5c599412f
commit
5ba72d0ae5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user