dovecot-2.2: i_stream_next_line(): Don't reset stream_errno if s...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Dec 15 13:43:54 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/b277f0bb18a2
changeset: 15478:b277f0bb18a2
user: Timo Sirainen <tss at iki.fi>
date: Sat Dec 15 13:43:44 2012 +0200
description:
i_stream_next_line(): Don't reset stream_errno if stream is already closed.
diffstat:
src/lib/istream.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 5a40e43bbe23 -r b277f0bb18a2 src/lib/istream.c
--- a/src/lib/istream.c Sat Dec 15 13:31:31 2012 +0200
+++ b/src/lib/istream.c Sat Dec 15 13:43:44 2012 +0200
@@ -363,7 +363,8 @@
const unsigned char *pos;
if (_stream->skip >= _stream->pos) {
- stream->stream_errno = 0;
+ if (!unlikely(stream->closed))
+ stream->stream_errno = 0;
return NULL;
}
More information about the dovecot-cvs
mailing list