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

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 5 16:00:51 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/1dc78fef8048
changeset: 7909:1dc78fef8048
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 16:00:43 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 7ccb90f9b4fd -r 1dc78fef8048 src/lib-storage/index/mbox/istream-raw-mbox.c
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun Oct 05 15:39:22 2008 +0300
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun Oct 05 16:00:43 2008 +0300
@@ -308,6 +308,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