From: Timo Sirainen Date: Sat, 13 Feb 2010 03:45:23 +0000 (+0200) Subject: zlib: o_stream_create_deflate() shouldn't have enabled zlib header. X-Git-Tag: 2.0.beta3~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acc7a4107dfc37cafec156ebc11f3b651bb4bafc;p=thirdparty%2Fdovecot%2Fcore.git zlib: o_stream_create_deflate() shouldn't have enabled zlib header. --HG-- branch : HEAD --- diff --git a/src/plugins/zlib/ostream-zlib.c b/src/plugins/zlib/ostream-zlib.c index e3e64108e6..2e9cb63672 100644 --- a/src/plugins/zlib/ostream-zlib.c +++ b/src/plugins/zlib/ostream-zlib.c @@ -246,8 +246,7 @@ o_stream_create_zlib(struct ostream *output, int level, bool gz) 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;