dovecot-2.0: istream zlib: Change "unexpected EOF" errno from EI...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 6 20:52:19 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/ab2670833cb7
changeset: 11742:ab2670833cb7
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 06 18:52:16 2010 +0100
description:
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.

diffstat:

 src/plugins/zlib/istream-zlib.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 962c9144a31d -r ab2670833cb7 src/plugins/zlib/istream-zlib.c
--- a/src/plugins/zlib/istream-zlib.c	Tue Jul 06 17:01:44 2010 +0100
+++ b/src/plugins/zlib/istream-zlib.c	Tue Jul 06 18:52:16 2010 +0100
@@ -244,7 +244,7 @@
 					zlib_read_error(zstream,
 							"unexpected EOF");
 				}
-				stream->istream.stream_errno = EINVAL;
+				stream->istream.stream_errno = EPIPE;
 			}
 			return -1;
 		}


More information about the dovecot-cvs mailing list