dovecot-1.2: hash2_clear() didn't reset deleted_values list, cau...

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 5 12:40:34 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/30fedb49296e
changeset: 8153:30fedb49296e
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 05 12:40:01 2008 +0300
description:
hash2_clear() didn't reset deleted_values list, causing bugs later on.

diffstat:

1 file changed, 1 insertion(+)
src/lib/hash2.c |    1 +

diffs (11 lines):

diff -r 9690f8a1d21f -r 30fedb49296e src/lib/hash2.c
--- a/src/lib/hash2.c	Fri Sep 05 10:55:55 2008 +0300
+++ b/src/lib/hash2.c	Fri Sep 05 12:40:01 2008 +0300
@@ -73,6 +73,7 @@ void hash2_clear(struct hash2_table *has
 	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)


More information about the dovecot-cvs mailing list