Explorar el Código

Harmless: Z_OK is not an acceptable answer to Z_FINISH.

svn:r6701
Nick Mathewson hace 19 años
padre
commit
05eff35ac6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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: