shared-key: Clear shared secret when destroyed
This commit is contained in:
1 parent
5c24b05f0c
commit
16d91ab761
1 file changed
+1
-1
@@ -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