changeset 20284:d32be5f9c8bf

lazy-expunge: Fixed crash on error handling
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sat, 04 Jun 2016 03:47:37 +0300
parents 85a5d1e495ed
children f8b7ef642ad3
files src/plugins/lazy-expunge/lazy-expunge-plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c	Fri Jun 03 20:14:01 2016 +0300
+++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c	Sat Jun 04 03:47:37 2016 +0300
@@ -372,7 +372,7 @@
 
 	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);
 		}
 	}