]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: With >1 expunge handlers deinit was called with wrong sync_context.
authorTimo Sirainen <tss@iki.fi>
Thu, 8 Oct 2009 15:21:10 +0000 (11:21 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 8 Oct 2009 15:21:10 +0000 (11:21 -0400)
Currently there was only one expunge handler so this wasn't a real problem.

--HG--
branch : HEAD

src/lib-index/mail-index-sync-ext.c

index 8ebb074cec51284fe76945fcd52701e64d4d0c71..85e1b96859213ccc3442af3d8e221f2ee7ccb399 100644 (file)
@@ -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);
                }
        }