From: Timo Sirainen Date: Thu, 8 Oct 2009 15:21:10 +0000 (-0400) Subject: lib-index: With >1 expunge handlers deinit was called with wrong sync_context. X-Git-Tag: 2.0.alpha1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e3c9d98927a1244c786266c5f2b8467f566b2b7;p=thirdparty%2Fdovecot%2Fcore.git 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. --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-index-sync-ext.c b/src/lib-index/mail-index-sync-ext.c index 8ebb074cec..85e1b96859 100644 --- a/src/lib-index/mail-index-sync-ext.c +++ b/src/lib-index/mail-index-sync-ext.c @@ -66,8 +66,8 @@ mail_index_sync_deinit_expunge_handlers(struct mail_index_sync_map_ctx *ctx) 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); } }