dovecot-2.0: dsync: Fixed assert-crashing on exporting a "delete...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 1 22:59:36 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/d701f254ca4e
changeset: 11694:d701f254ca4e
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 01 20:59:33 2010 +0100
description:
dsync: Fixed assert-crashing on exporting a "deleted mailbox" record to proxy.

diffstat:

 src/dsync/dsync-proxy.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r be38abc90df3 -r d701f254ca4e src/dsync/dsync-proxy.c
--- a/src/dsync/dsync-proxy.c	Thu Jul 01 20:46:04 2010 +0100
+++ b/src/dsync/dsync-proxy.c	Thu Jul 01 20:59:33 2010 +0100
@@ -168,7 +168,8 @@
 		i_assert(box->uid_validity == 0);
 		return;
 	}
-	i_assert(box->uid_validity != 0);
+	i_assert(box->uid_validity != 0 ||
+		 (box->flags & DSYNC_MAILBOX_FLAG_DELETED_MAILBOX) != 0);
 
 	str_append_c(str, '\t');
 	dsync_proxy_mailbox_guid_export(str, &box->mailbox_guid);


More information about the dovecot-cvs mailing list