dovecot: If extension introduction is broken, don't log errors a...

dovecot at dovecot.org dovecot at dovecot.org
Sun Sep 2 04:52:01 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/aeaaaaeb64a6
changeset: 6347:aeaaaaeb64a6
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 02 03:35:03 2007 +0300
description:
If extension introduction is broken, don't log errors about following
extensions updates.

diffstat:

1 file changed, 5 insertions(+)
src/lib-index/mail-index-sync-ext.c |    5 +++++

diffs (15 lines):

diff -r 5dcd55d1a47f -r aeaaaaeb64a6 src/lib-index/mail-index-sync-ext.c
--- a/src/lib-index/mail-index-sync-ext.c	Sun Sep 02 03:32:45 2007 +0300
+++ b/src/lib-index/mail-index-sync-ext.c	Sun Sep 02 03:35:03 2007 +0300
@@ -359,6 +359,11 @@ int mail_index_sync_ext_intro(struct mai
 	const char *name;
 	buffer_t *hdr_buf;
 	uint32_t ext_id;
+
+	/* default to ignoring the following extension updates in case this
+	   intro is corrupted */
+	ctx->cur_ext_id = 0;
+	ctx->cur_ext_ignore = TRUE;
 
 	if (u->ext_id != (uint32_t)-1 &&
 	    (!array_is_created(&map->extensions) ||


More information about the dovecot-cvs mailing list