mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Harmless: Z_OK is not an acceptable answer to Z_FINISH.
svn:r6701
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user