dovecot-2.0: lib-index: With >1 expunge handlers deinit was call...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Oct 8 18:21:16 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/687c30b1539a
changeset: 9998:687c30b1539a
user: Timo Sirainen <tss at iki.fi>
date: Thu Oct 08 11:21:10 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 68869bf8aa31 -r 687c30b1539a src/lib-index/mail-index-sync-ext.c
--- a/src/lib-index/mail-index-sync-ext.c Thu Oct 08 11:14:46 2009 -0400
+++ b/src/lib-index/mail-index-sync-ext.c Thu Oct 08 11:21:10 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