dovecot-2.2: mbox: istream_raw_mbox_seek() needs to reset all co...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 19 08:38:12 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/31262a892ba7
changeset: 18100:31262a892ba7
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 19 17:37:18 2014 +0900
description:
mbox: istream_raw_mbox_seek() needs to reset all corruption errors.
We now reset all errors, but it doesn't really matter.
diffstat:
src/lib-storage/index/mbox/istream-raw-mbox.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 8973329d1ceb -r 31262a892ba7 src/lib-storage/index/mbox/istream-raw-mbox.c
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c Sat Nov 15 03:26:16 2014 +0200
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c Wed Nov 19 17:37:18 2014 +0900
@@ -688,6 +688,9 @@
i_assert(rstream->locked);
+ /* reset any (corruption) errors */
+ stream->stream_errno = 0;
+ i_free_and_null(stream->real_stream->iostream.error);
rstream->corrupted = FALSE;
rstream->eof = FALSE;
rstream->istream.istream.eof = FALSE;
More information about the dovecot-cvs
mailing list