From: Timo Sirainen Date: Tue, 28 Jun 2016 16:45:12 +0000 (+0300) Subject: lazy-expunge: Fixed crash when copying from internal namespace X-Git-Tag: 2.3.0.rc1~3412 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6181ecf4d911026ec7546fd2231de2e505bc9f33;p=thirdparty%2Fdovecot%2Fcore.git lazy-expunge: Fixed crash when copying from internal namespace Most importantly fixes crash in LDA. --- diff --git a/src/plugins/lazy-expunge/lazy-expunge-plugin.c b/src/plugins/lazy-expunge/lazy-expunge-plugin.c index e50789dfe0..3a83b11276 100644 --- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c +++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c @@ -348,7 +348,8 @@ static int lazy_expunge_copy(struct mail_save_context *ctx, struct mail *_mail) LAZY_EXPUNGE_CONTEXT(ctx->transaction->box); struct lazy_expunge_mail *mmail = LAZY_EXPUNGE_MAIL_CONTEXT(mail); - mmail->moving = ctx->moving; + if (mmail != NULL) + mmail->moving = ctx->moving; return mbox->super.copy(ctx, _mail); }