Use memwipe() in chunk_clear()

This commit is contained in:
Martin Willi
2011-05-09 14:36:14 +02:00
parent ed678b52e2
commit 7dc48bab1b
+1 -1
View File
@@ -175,7 +175,7 @@ static inline void chunk_clear(chunk_t *chunk)
{ {
if (chunk->ptr) if (chunk->ptr)
{ {
memset(chunk->ptr, 0, chunk->len); memwipe(chunk->ptr, chunk->len);
chunk_free(chunk); chunk_free(chunk);
} }
} }