dovecot-1.2: lib-index: With >1 expunge handlers deinit was call...

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 8 18:21:33 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/e20921f71bd0
changeset: 9419:e20921f71bd0
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 08 11:21:26 2009 -0400
description:
lib-index: With >1 expunge handlers deinit was called with wrong sync_context.
Currently there was only one expunge handler so this wasn't a real problem.

diffstat:

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

diffs (14 lines):

diff -r f7f0bff8438a -r e20921f71bd0 src/lib-index/mail-index-sync-ext.c
--- a/src/lib-index/mail-index-sync-ext.c	Thu Oct 08 11:15:07 2009 -0400
+++ b/src/lib-index/mail-index-sync-ext.c	Thu Oct 08 11:21:26 2009 -0400
@@ -66,8 +66,8 @@ mail_index_sync_deinit_expunge_handlers(
 
 	eh = array_get(&ctx->expunge_handlers, &count);
 	for (i = 0; i < count; i++) {
-		if (eh->sync_context != NULL) {
-			eh[i].handler(ctx, 0, NULL, eh->sync_context,
+		if (eh[i].sync_context != NULL) {
+			eh[i].handler(ctx, 0, NULL, eh[i].sync_context,
 				      eh[i].context);
 		}
 	}


More information about the dovecot-cvs mailing list