From: Timo Sirainen Date: Sat, 4 Jun 2016 00:47:37 +0000 (+0300) Subject: lazy-expunge: Fixed crash on error handling X-Git-Tag: 2.2.25.rc1~186 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a398ecbc1ce74dcb42667424b476ce4b6012831;p=thirdparty%2Fdovecot%2Fcore.git lazy-expunge: Fixed crash on error handling --- diff --git a/src/plugins/lazy-expunge/lazy-expunge-plugin.c b/src/plugins/lazy-expunge/lazy-expunge-plugin.c index baa6ffa13b..0a92de6090 100644 --- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c +++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c @@ -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(<->dest_trans) < 0) { - lazy_expunge_set_error(lt, lt->dest_trans->box->storage); + lazy_expunge_set_error(lt, ctx->box->storage); } }