Mercurial > dovecot > original-hg > dovecot-2.2
changeset 16712:82975fb3ae44
lib-lda: Fixed passing through error message when mailbox couldn't be opened.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 05 Sep 2013 21:06:50 +0300 |
parents | 6ffe37152ed0 |
children | 00d0856b4a0b |
files | src/lib-lda/mail-deliver.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-lda/mail-deliver.c Wed Sep 04 22:43:47 2013 +0300 +++ b/src/lib-lda/mail-deliver.c Thu Sep 05 21:06:50 2013 +0300 @@ -282,8 +282,10 @@ mailbox_name = str_sanitize(mailbox, 80); if (mail_deliver_save_open(&open_ctx, mailbox, &box, &error, &errstr) < 0) { - if (box != NULL) + if (box != NULL) { + *storage_r = mailbox_get_storage(box); mailbox_free(&box); + } mail_deliver_log(ctx, "save failed to open mailbox %s: %s", mailbox_name, errstr); return -1;