Skip to content

Commit

Permalink
istream-zlib: "missing gz trailer" error message was wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Oct 24, 2016
1 parent 1ea0aa8 commit bc06e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-compression/istream-zlib.c
Expand Up @@ -76,7 +76,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 header");
zlib_read_error(zstream, "missing gz trailer");
stream->istream.stream_errno = EINVAL;
}
return ret;
Expand Down

0 comments on commit bc06e38

Please sign in to comment.