shared-key: Clear shared secret when destroyed
This commit is contained in:
@@ -77,7 +77,7 @@ METHOD(shared_key_t, destroy, void,
|
||||
{
|
||||
if (ref_put(&this->ref))
|
||||
{
|
||||
free(this->key.ptr);
|
||||
chunk_clear(&this->key);
|
||||
free(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user