]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lda: Fixed passing through error message when mailbox couldn't be opened.
authorTimo Sirainen <tss@iki.fi>
Thu, 5 Sep 2013 18:06:50 +0000 (21:06 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 5 Sep 2013 18:06:50 +0000 (21:06 +0300)
src/lib-lda/mail-deliver.c

index 458dcd2b405e09d8f946989c6bb8fac2278cef61..3f726828450cc7eda754fad9ab5dfc834a37997c 100644 (file)
@@ -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;