dovecot-2.1: dsync: Don't crash if one source has indexes disabled.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 28 19:44:30 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/7b94d1c8a6e7
changeset: 14020:7b94d1c8a6e7
user: Timo Sirainen <tss at iki.fi>
date: Sat Jan 28 19:44:24 2012 +0200
description:
dsync: Don't crash if one source has indexes disabled.
diffstat:
src/doveadm/dsync/dsync-worker-local.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 32318f1588d4 -r 7b94d1c8a6e7 src/doveadm/dsync/dsync-worker-local.c
--- a/src/doveadm/dsync/dsync-worker-local.c Sat Jan 28 19:25:32 2012 +0200
+++ b/src/doveadm/dsync/dsync-worker-local.c Sat Jan 28 19:44:24 2012 +0200
@@ -313,6 +313,8 @@
const struct mailbox_log_record *rec;
log = mailbox_list_get_changelog(list);
+ if (log == NULL)
+ return 0;
iter = mailbox_log_iter_init(log);
while ((rec = mailbox_log_iter_next(iter)) != NULL) {
switch (rec->type) {
More information about the dovecot-cvs
mailing list