From: Timo Sirainen Date: Thu, 5 Sep 2013 18:06:50 +0000 (+0300) Subject: lib-lda: Fixed passing through error message when mailbox couldn't be opened. X-Git-Tag: 2.2.6~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16a92d0c84869c86c3d5e4cbb9fe1d455ff59457;p=thirdparty%2Fdovecot%2Fcore.git lib-lda: Fixed passing through error message when mailbox couldn't be opened. --- diff --git a/src/lib-lda/mail-deliver.c b/src/lib-lda/mail-deliver.c index 458dcd2b40..3f72682845 100644 --- a/src/lib-lda/mail-deliver.c +++ b/src/lib-lda/mail-deliver.c @@ -282,8 +282,10 @@ int mail_deliver_save(struct mail_deliver_context *ctx, const char *mailbox, 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;