]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Harmless: Z_OK is not an acceptable answer to Z_FINISH.
authorNick Mathewson <nickm@torproject.org>
Thu, 29 Jun 2006 11:17:36 +0000 (11:17 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 29 Jun 2006 11:17:36 +0000 (11:17 +0000)
svn:r6701

src/common/torgzip.c

index aca8386cc7977cdde74636a3cb978cd7193b9f44..ec02870776358ef3213a25790e07d571de01bd1f 100644 (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: