]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail_hash_update() updated wrong index.
authorTimo Sirainen <tss@iki.fi>
Wed, 11 Jun 2008 23:24:03 +0000 (02:24 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 11 Jun 2008 23:24:03 +0000 (02:24 +0300)
--HG--
branch : HEAD

src/lib-storage/index/index-thread-links.c

index 23bd9a91f2451ee24f606841a922c83b21e25aeb..239a265fae354a98dcc07e37627d3ee894de78b0 100644 (file)
@@ -101,7 +101,7 @@ static void thread_link_reference(struct mail_thread_update_context *ctx,
        child = mail_hash_lookup_idx(ctx->hash_trans, child_idx);
 
        child->link_refcount++;
-       mail_hash_update(ctx->hash_trans, parent_idx);
+       mail_hash_update(ctx->hash_trans, child_idx);
 
        if (thread_node_has_ancestor(ctx, parent, child)) {
                if (parent == child) {