mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Harmless: Z_OK is not an acceptable answer to Z_FINISH.
svn:r6701
This commit is contained in:
parent
4b49d298eb
commit
05eff35ac6
@ -352,7 +352,7 @@ tor_zlib_process(tor_zlib_state_t *state,
|
||||
return Z_OK;
|
||||
return TOR_ZLIB_BUF_FULL;
|
||||
case Z_OK:
|
||||
if (state->stream.avail_out == 0)
|
||||
if (state->stream.avail_out == 0 || finish)
|
||||
return TOR_ZLIB_BUF_FULL;
|
||||
return TOR_ZLIB_OK;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user