proper initialization and disposal of keying material
This commit is contained in:
@@ -151,8 +151,11 @@ static inline void chunk_free(chunk_t *chunk)
|
||||
*/
|
||||
static inline void chunk_clear(chunk_t *chunk)
|
||||
{
|
||||
memset(chunk->ptr, 0, chunk->len);
|
||||
chunk_free(chunk);
|
||||
if (chunk->ptr)
|
||||
{
|
||||
memset(chunk->ptr, 0, chunk->len);
|
||||
chunk_free(chunk);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user