Skip to content

Commit

Permalink
lib-lda: Fix pigeonhole testsuite to not crash
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Feb 22, 2017
1 parent d89a40c commit 544a392
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib-lda/mail-deliver.c
Expand Up @@ -230,10 +230,11 @@ int mail_deliver_save_open(struct mail_deliver_save_open_context *ctx,
}

*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;
Expand Down

0 comments on commit 544a392

Please sign in to comment.