changeset 8234:4d40d93842e3 HEAD

mbox: Potential crashfix after "next message unexpectedly lost" failures.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Oct 2008 16:01:04 +0300
parents b7cbf648228f
children 87936290b682
files src/lib-storage/index/mbox/istream-raw-mbox.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		rstream->eof = TRUE;
 		rstream->corrupted = TRUE;
 		rstream->istream.istream.stream_errno = EBADMSG;
+		stream->pos = 0;
 		return -1;
 	}