Mercurial > dovecot > core-2.2
changeset 21669:39b914bf2894
lib-lda: Fix pigeonhole testsuite to not crash
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 22 Feb 2017 10:44:00 +0200 |
parents | e26f2729d135 |
children | 4ce2e5f4dafc |
files | src/lib-lda/mail-deliver.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-lda/mail-deliver.c Tue Feb 21 22:34:14 2017 +0200 +++ b/src/lib-lda/mail-deliver.c Wed Feb 22 10:44:00 2017 +0200 @@ -230,10 +230,11 @@ } *box_r = box = mailbox_alloc(ns->list, name, flags); - /* flag that this mailbox is used for delivering the mail. */ + /* flag that this mailbox is used for delivering the mail. + the context isn't set in pigeonhole testuite. */ struct mail_deliver_mailbox *mbox = MAIL_DELIVER_STORAGE_CONTEXT(box); - i_assert(mbox != NULL); - mbox->delivery_box = TRUE; + if (mbox != NULL) + mbox->delivery_box = TRUE; if (mailbox_open(box) == 0) return 0;