swanctl: Clear possibly unencrypted key/container files from memory

This commit is contained in:
Tobias Brunner
2021-10-04 11:30:03 +02:00
parent 3a739424e1
commit b667eb37b9
+2 -2
View File
@@ -445,7 +445,7 @@ static void load_keys(load_ctx_t *ctx, char *type, char *dir)
{
load_key(ctx, path, type, *map);
}
chunk_unmap(map);
chunk_unmap_clear(map);
}
else
{
@@ -552,7 +552,7 @@ static void load_containers(load_ctx_t *ctx, char *type, char *dir)
if (map)
{
load_encrypted_container(ctx, rel, path, type, *map);
chunk_unmap(map);
chunk_unmap_clear(map);
}
else
{