]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
zlib: o_stream_create_deflate() shouldn't have enabled zlib header.
authorTimo Sirainen <tss@iki.fi>
Sat, 13 Feb 2010 03:45:23 +0000 (05:45 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 13 Feb 2010 03:45:23 +0000 (05:45 +0200)
--HG--
branch : HEAD

src/plugins/zlib/ostream-zlib.c

index e3e64108e6cf158700ea8ccd00d15539670a455b..2e9cb636724368ae07a043038ccbc9c16f0ec282 100644 (file)
@@ -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;