Harmless: Z_OK is not an acceptable answer to Z_FINISH.

svn:r6701
This commit is contained in:
Nick Mathewson 2006-06-29 11:17:36 +00:00
parent 4b49d298eb
commit 05eff35ac6

View File

@ -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: