]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
hash2_clear() didn't reset deleted_values list, causing bugs later on.
authorTimo Sirainen <tss@iki.fi>
Fri, 5 Sep 2008 09:40:01 +0000 (12:40 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 5 Sep 2008 09:40:01 +0000 (12:40 +0300)
--HG--
branch : HEAD

src/lib/hash2.c

index d3490e999be0bdc3020d3003a611a1a7719133db..67ef269056cc3246b48c5029e7bca9ec4d691785 100644 (file)
@@ -73,6 +73,7 @@ void hash2_clear(struct hash2_table *hash)
        hash2_alloc_table(hash, hash->initial_size);
        p_clear(hash->value_pool);
        hash->count = 0;
+       hash->deleted_values = NULL;
 }
 
 static void hash2_resize(struct hash2_table *hash, bool grow)