From: Nick Mathewson Date: Thu, 29 Jun 2006 11:17:36 +0000 (+0000) Subject: Harmless: Z_OK is not an acceptable answer to Z_FINISH. X-Git-Tag: tor-0.1.1.23~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05eff35ac6d64b;p=thirdparty%2Ftor.git Harmless: Z_OK is not an acceptable answer to Z_FINISH. svn:r6701 --- diff --git a/src/common/torgzip.c b/src/common/torgzip.c index aca8386cc7..ec02870776 100644 --- a/src/common/torgzip.c +++ b/src/common/torgzip.c @@ -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: