]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
stroke: Clear ipsec.secrets file from memory
authorTobias Brunner <tobias@strongswan.org>
Thu, 30 Sep 2021 13:38:38 +0000 (15:38 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 Oct 2021 09:30:03 +0000 (11:30 +0200)
src/libcharon/plugins/stroke/stroke_cred.c

index 7fc95657ed501b1cbbbf857b4dfa14d14679df9c..0d3e4efebb109158b68b8e3fb75c47af82757379 100644 (file)
@@ -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 */