From: Timo Sirainen Date: Tue, 6 Jul 2010 17:52:16 +0000 (+0100) Subject: istream zlib: Change "unexpected EOF" errno from EINVAL to EPIPE. X-Git-Tag: 2.0.rc2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e67426cc7611e0048173196adf0c6078057b3519;p=thirdparty%2Fdovecot%2Fcore.git istream zlib: Change "unexpected EOF" errno from EINVAL to EPIPE. This should give at least a bit nicer logout reasons when imap-zlib is used and connection is closed. --HG-- branch : HEAD --- diff --git a/src/plugins/zlib/istream-zlib.c b/src/plugins/zlib/istream-zlib.c index a0eaca31c3..026036fa35 100644 --- a/src/plugins/zlib/istream-zlib.c +++ b/src/plugins/zlib/istream-zlib.c @@ -244,7 +244,7 @@ static ssize_t i_stream_zlib_read(struct istream_private *stream) zlib_read_error(zstream, "unexpected EOF"); } - stream->istream.stream_errno = EINVAL; + stream->istream.stream_errno = EPIPE; } return -1; }