Use memwipe() in chunk_clear()
authorMartin Willi <martin@revosec.ch>
Mon, 9 May 2011 11:20:24 +0000 (13:20 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 9 May 2011 12:36:14 +0000 (14:36 +0200)
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);
        }
 }