]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lazy-expunge: Fixed crash on error handling
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 4 Jun 2016 00:47:37 +0000 (03:47 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 4 Jun 2016 00:47:37 +0000 (03:47 +0300)
src/plugins/lazy-expunge/lazy-expunge-plugin.c

index c943fffa8ce645c3285b524bb16500d4f8a5579e..322d8b68222ac51da491385b3be6cf45e929879a 100644 (file)
@@ -372,7 +372,7 @@ lazy_expunge_transaction_commit(struct mailbox_transaction_context *ctx,
 
        if (lt->dest_trans != NULL && lt->delayed_error == MAIL_ERROR_NONE) {
                if (mailbox_transaction_commit(&lt->dest_trans) < 0) {
-                       lazy_expunge_set_error(lt, lt->dest_trans->box->storage);
+                       lazy_expunge_set_error(lt, ctx->box->storage);
                }
        }