]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mdbox: If mdbox header is corrupted, resize it to make sure its size is correct.
authorTimo Sirainen <tss@iki.fi>
Tue, 18 Jun 2013 10:00:23 +0000 (13:00 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 18 Jun 2013 10:00:23 +0000 (13:00 +0300)
src/lib-storage/index/dbox-multi/mdbox-storage.c

index 0c353cc68a50eeab51f08941e095812f2333c151..c938bf6315d1abaed4ec370c1bacfc3ec2bee3b7 100644 (file)
@@ -229,7 +229,7 @@ void mdbox_update_header(struct mdbox_mailbox *mbox,
 
        if (mdbox_read_header(mbox, &hdr, &need_resize) < 0) {
                memset(&hdr, 0, sizeof(hdr));
-               need_resize = FALSE;
+               need_resize = TRUE;
        }
 
        new_hdr = hdr;