dovecot-2.2: dsync: Crashfix in certain situation.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Sep 3 17:00:22 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/f116e41d868d
changeset: 19080:f116e41d868d
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 03 19:59:16 2015 +0300
description:
dsync: Crashfix in certain situation.
diffstat:
src/doveadm/dsync/dsync-mailbox-import.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 83fe8ab89c0e -r f116e41d868d src/doveadm/dsync/dsync-mailbox-import.c
--- a/src/doveadm/dsync/dsync-mailbox-import.c Thu Sep 03 19:58:39 2015 +0300
+++ b/src/doveadm/dsync/dsync-mailbox-import.c Thu Sep 03 19:59:16 2015 +0300
@@ -1628,8 +1628,13 @@
} else {
(void)dsync_mailbox_find_common_expunged_uid(importer, change, result_r);
}
- *result_r = t_strdup_printf("%s (next local mail UID=%u)",
- *result_r, importer->cur_mail->uid);
+ if (importer->cur_mail != NULL) {
+ *result_r = t_strdup_printf("%s (next local mail UID=%u)",
+ *result_r, importer->cur_mail->uid);
+ } else {
+ *result_r = t_strdup_printf("%s (no more local mails)",
+ *result_r);
+ }
}
int dsync_mailbox_import_change(struct dsync_mailbox_importer *importer,
More information about the dovecot-cvs
mailing list