changeset 15673:4673af53e7e6

dsync: Error handling crashfix
author Timo Sirainen <tss@iki.fi>
date Tue, 22 Jan 2013 12:59:32 +0200
parents 83803323f357
children 6fa779e1d663
files src/doveadm/dsync/dsync-brain-mailbox.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain-mailbox.c	Tue Jan 22 12:59:22 2013 +0200
+++ b/src/doveadm/dsync/dsync-brain-mailbox.c	Tue Jan 22 12:59:32 2013 +0200
@@ -545,8 +545,8 @@
 
 	if (mailbox_update(box, &update) < 0) {
 		i_error("Couldn't update mailbox %s metadata: %s",
-			mailbox_get_vname(brain->box),
-			mailbox_get_last_error(brain->box, NULL));
+			mailbox_get_vname(box),
+			mailbox_get_last_error(box, NULL));
 		brain->failed = TRUE;
 	}
 }