dovecot-1.2: mbox: Potential crashfix after "next message unexpe...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 5 16:01:08 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/4d40d93842e3
changeset: 8234:4d40d93842e3
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 16:01:04 2008 +0300
description:
mbox: Potential crashfix after "next message unexpectedly lost" failures.

diffstat:

1 file changed, 1 insertion(+)
src/lib-storage/index/mbox/istream-raw-mbox.c |    1 +

diffs (11 lines):

diff -r b7cbf648228f -r 4d40d93842e3 src/lib-storage/index/mbox/istream-raw-mbox.c
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun Oct 05 15:39:37 2008 +0300
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun Oct 05 16:01:04 2008 +0300
@@ -310,6 +310,7 @@ static ssize_t i_stream_raw_mbox_read(st
 		rstream->eof = TRUE;
 		rstream->corrupted = TRUE;
 		rstream->istream.istream.stream_errno = EBADMSG;
+		stream->pos = 0;
 		return -1;
 	}
 


More information about the dovecot-cvs mailing list