dovecot-2.0: zlib: o_stream_create_deflate() shouldn't have enab...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 05:46:27 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/15feca627630
changeset: 10698:15feca627630
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Feb 13 05:45:23 2010 +0200
description:
zlib: o_stream_create_deflate() shouldn't have enabled zlib header.

diffstat:

 src/plugins/zlib/ostream-zlib.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r e0e6d941941c -r 15feca627630 src/plugins/zlib/ostream-zlib.c
--- a/src/plugins/zlib/ostream-zlib.c	Sat Feb 13 05:44:20 2010 +0200
+++ b/src/plugins/zlib/ostream-zlib.c	Sat Feb 13 05:45:23 2010 +0200
@@ -246,8 +246,7 @@
 	o_stream_ref(output);
 
 	o_stream_zlib_init_gz_header(zstream, level, strategy);
-	ret = deflateInit2(&zstream->zs, level, Z_DEFLATED,
-			   gz ? -15 : 15, 8, strategy);
+	ret = deflateInit2(&zstream->zs, level, Z_DEFLATED, -15, 8, strategy);
 	switch (ret) {
 	case Z_OK:
 		break;


More information about the dovecot-cvs mailing list