dovecot-2.2: lib-mail: istream-dot should have immediately retur...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 15 08:11:30 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/42b3ac799f2f
changeset: 18252:42b3ac799f2f
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 15 09:55:56 2015 +0200
description:
lib-mail: istream-dot should have immediately returned error if dot-line was missing at EOF.
diffstat:
src/lib-mail/istream-dot.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r d76d4351762b -r 42b3ac799f2f src/lib-mail/istream-dot.c
--- a/src/lib-mail/istream-dot.c Sun Feb 15 09:55:05 2015 +0200
+++ b/src/lib-mail/istream-dot.c Sun Feb 15 09:55:56 2015 +0200
@@ -131,6 +131,8 @@
/* we have to update stream->pos before reading more data */
ret1 = i_stream_dot_return(stream, dest, 0);
if ((ret = i_stream_dot_read_some(dstream)) <= 0) {
+ if (stream->istream.stream_errno != 0)
+ return -1;
if (ret1 != 0)
return ret1;
dest = stream->pos;
More information about the dovecot-cvs
mailing list