From: Timo Sirainen Date: Fri, 5 Sep 2008 09:40:01 +0000 (+0300) Subject: hash2_clear() didn't reset deleted_values list, causing bugs later on. X-Git-Tag: 1.2.alpha1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e88cd0b7df2fd2ddc3ff80a6e0cef034072ab08;p=thirdparty%2Fdovecot%2Fcore.git hash2_clear() didn't reset deleted_values list, causing bugs later on. --HG-- branch : HEAD --- diff --git a/src/lib/hash2.c b/src/lib/hash2.c index d3490e999b..67ef269056 100644 --- a/src/lib/hash2.c +++ b/src/lib/hash2.c @@ -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)