Use memwipe() in chunk_clear()
[strongswan.git] / src / libstrongswan / chunk.h
index f94bdfb..63644ac 100644 (file)
@@ -175,7 +175,7 @@ static inline void chunk_clear(chunk_t *chunk)
 {
        if (chunk->ptr)
        {
-               memset(chunk->ptr, 0, chunk->len);
+               memwipe(chunk->ptr, chunk->len);
                chunk_free(chunk);
        }
 }