@@ -1,3 +1,7 @@
+Thu Jan 6 14:52:38 CET 2011 (acab)
+-----------------------------------
+ * libclamav/hashtab.c: properly clear the table
+
Mon Jan 3 17:10:03 CET 2011 (tk)
---------------------------------
* freshclam/manager.c: fix version warning (bb#2456)
@@ -367,7 +367,7 @@ void cli_hashtab_clear(struct cli_hashtable *s)
free((void *)s->htable[i].key);
}
if(s->htable)
- memset(s->htable, 0, s->capacity);
+ memset(s->htable, 0, s->capacity * sizeof(*s->htable));
s->used = 0;