]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-compress: Fix missing .gz header error message
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 13 Feb 2017 16:06:46 +0000 (18:06 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 13 Feb 2017 16:08:26 +0000 (18:08 +0200)
src/lib-compression/istream-zlib.c

index 84c0b50add41b5a20153965712581795caf208c0..805299c0ad98b19bf0510bfb4966e2d3a4a1a96c 100644 (file)
@@ -77,7 +77,7 @@ static int i_stream_zlib_read_header(struct istream_private *stream)
        if (size == zstream->prev_size) {
                stream->istream.stream_errno = stream->parent->stream_errno;
                if (ret == -1 && stream->istream.stream_errno == 0) {
-                       zlib_read_error(zstream, "missing gz trailer");
+                       zlib_read_error(zstream, "missing gz header");
                        stream->istream.stream_errno = EINVAL;
                }
                if (ret == -2) {