]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts-plugin: Remove NULL assert
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 19 Sep 2016 09:27:16 +0000 (12:27 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 19 Sep 2016 12:40:21 +0000 (15:40 +0300)
fts_backend_update_deinit will set box to NULL and call
update_set_mailbox then. NULL check needs to be done
in backends.

src/plugins/fts/fts-api.c

index a12c1903d385c208f2fd48305695d9ca1b39bdf9..5eec770bc85187860db7ed32997cb2f0c276dd61 100644 (file)
@@ -125,7 +125,6 @@ static void fts_backend_set_cur_mailbox(struct fts_backend_update_context *ctx)
 {
        fts_backend_update_unset_build_key(ctx);
        if (ctx->backend_box != ctx->cur_box) {
-               i_assert(ctx->cur_box != NULL);
                ctx->backend->v.update_set_mailbox(ctx, ctx->cur_box);
                ctx->backend_box = ctx->cur_box;
        }