]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: Fixed assert-crash with read-only mbox streams (e.g. zlib plugin)
authorTimo Sirainen <tss@iki.fi>
Wed, 23 Jul 2008 23:13:11 +0000 (02:13 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 23 Jul 2008 23:13:11 +0000 (02:13 +0300)
--HG--
branch : HEAD

src/lib-storage/index/mbox/mbox-file.c

index 785909481687cfb1f9da81edbcb5d652b0ce0183..1a06e2c1759cce9837ab714491c7eb5eed771872 100644 (file)
@@ -125,6 +125,7 @@ void mbox_file_close_stream(struct mbox_mailbox *mbox)
                if (mbox->mbox_fd == -1) {
                        /* read-only mbox stream */
                        i_assert(mbox->mbox_readonly);
+                       i_stream_seek(mbox->mbox_file_stream, 0);
                } else {
                        i_stream_destroy(&mbox->mbox_file_stream);
                }