swanctl: Clear possibly unencrypted key/container files from memory
This commit is contained in:
@@ -445,7 +445,7 @@ static void load_keys(load_ctx_t *ctx, char *type, char *dir)
|
|||||||
{
|
{
|
||||||
load_key(ctx, path, type, *map);
|
load_key(ctx, path, type, *map);
|
||||||
}
|
}
|
||||||
chunk_unmap(map);
|
chunk_unmap_clear(map);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -552,7 +552,7 @@ static void load_containers(load_ctx_t *ctx, char *type, char *dir)
|
|||||||
if (map)
|
if (map)
|
||||||
{
|
{
|
||||||
load_encrypted_container(ctx, rel, path, type, *map);
|
load_encrypted_container(ctx, rel, path, type, *map);
|
||||||
chunk_unmap(map);
|
chunk_unmap_clear(map);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user