dovecot-2.2: dsync: Crashfix for handling expunges from end of m...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jan 8 05:23:10 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/a7be0c9a00df
changeset: 15591:a7be0c9a00df
user: Timo Sirainen <tss at iki.fi>
date: Tue Jan 08 05:23:06 2013 +0200
description:
dsync: Crashfix for handling expunges from end of mailbox.
diffstat:
src/doveadm/dsync/dsync-mailbox-import.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r ea3c1bd6d434 -r a7be0c9a00df src/doveadm/dsync/dsync-mailbox-import.c
--- a/src/doveadm/dsync/dsync-mailbox-import.c Tue Jan 08 05:19:37 2013 +0200
+++ b/src/doveadm/dsync/dsync-mailbox-import.c Tue Jan 08 05:23:06 2013 +0200
@@ -822,7 +822,8 @@
i_assert(change->uid <= importer->last_common_uid);
if (dsync_import_set_mail(importer, change))
mail_expunge(importer->mail);
- } else if (change->uid < importer->cur_mail->uid) {
+ } else if (importer->cur_mail == NULL ||
+ change->uid < importer->cur_mail->uid) {
/* already expunged locally, we can ignore this.
uid=last_common_uid if we managed to verify from
transaction log that the GUIDs match */
More information about the dovecot-cvs
mailing list