clear RSA private key chunks after use
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 30 Aug 2009 17:12:29 +0000 (19:12 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 30 Aug 2009 17:12:29 +0000 (19:12 +0200)
src/pluto/keys.c

index 39c19e9..72ae19f 100644 (file)
@@ -484,7 +484,7 @@ end:
        /* clean up and return */
        for (p = RSA_PART_MODULUS ; p < part; p++)
        {
-               free(rsa_chunk[p].ptr);
+               chunk_clear(&rsa_chunk[p]);
        }
        return ugh;     
 }