Browse Source

Harmless: Z_OK is not an acceptable answer to Z_FINISH.

svn:r6701
Nick Mathewson 18 years ago
parent
commit
05eff35ac6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/torgzip.c

+ 1 - 1
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: