From 57faf886db8f725684e72095cfbd65fd5b600997 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 30 Sep 2021 15:38:38 +0200 Subject: [PATCH] stroke: Clear ipsec.secrets file from memory --- src/libcharon/plugins/stroke/stroke_cred.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcharon/plugins/stroke/stroke_cred.c b/src/libcharon/plugins/stroke/stroke_cred.c index 7fc95657ed..0d3e4efebb 100644 --- a/src/libcharon/plugins/stroke/stroke_cred.c +++ b/src/libcharon/plugins/stroke/stroke_cred.c @@ -1354,7 +1354,7 @@ static void load_secrets(private_stroke_cred_t *this, mem_cred_t *secrets, break; } } - chunk_unmap(src); + chunk_unmap_clear(src); if (level == 0) { /* replace secrets in active credential set */