Mercurial > dovecot > core-2.2
changeset 21304:3095a4ed77e5
lib-storage: Fix crash in obox's dsync-merge
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 13 Dec 2016 16:04:53 +0200 |
parents | e48ccffc7815 |
children | 398d70068a08 |
files | src/lib-storage/list/mailbox-list-index-backend.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index-backend.c Fri Dec 09 16:01:20 2016 +0200 +++ b/src/lib-storage/list/mailbox-list-index-backend.c Tue Dec 13 16:04:53 2016 +0200 @@ -516,6 +516,12 @@ if (ibox->module_ctx.super.open(box) < 0) return -1; + if (box->view == NULL) { + /* FIXME: dsync-merge is performing a delete in obox - remove + this check once dsync-merging is no longer used. */ + return 0; + } + /* if mailbox name has changed, update it to the header. Use \0 as the hierarchy separator in the header. This is to make sure we don't keep rewriting the name just in case some backend switches