diff options
-rw-r--r-- | src/common/torgzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |