[or-cvs] Harmless: Z_OK is not an acceptable answer to Z_FINISH.
Nick Mathewson
nickm at seul.org
Thu Jun 29 11:17:38 UTC 2006
Update of /home/or/cvsroot/tor/src/common
In directory moria:/home/nickm/src/tor/src/common
Modified Files:
torgzip.c
Log Message:
Harmless: Z_OK is not an acceptable answer to Z_FINISH.
Index: torgzip.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/torgzip.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -p -d -r1.35 -r1.36
--- torgzip.c 24 Jun 2006 02:06:52 -0000 1.35
+++ torgzip.c 29 Jun 2006 11:17:36 -0000 1.36
@@ -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:
More information about the tor-commits
mailing list