]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
Wipe auxiliary key store
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 28 Mar 2015 09:44:23 +0000 (10:44 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 28 Mar 2015 09:44:23 +0000 (10:44 +0100)
src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c

index 0ca24d76af48000bd5b11d4ef7d0661047ad8775..4fcb168fa840e5155d564b99175a5e0eb7156680 100644 (file)
@@ -252,7 +252,7 @@ static gmp_diffie_hellman_t *create_generic(diffie_hellman_group_t group,
                *random.ptr &= 0x7F;
        }
        mpz_import(this->xa, random.len, 1, 1, 1, 0, random.ptr);
-       chunk_free(&random);
+       chunk_clear(&random);
        DBG2(DBG_LIB, "size of DH secret exponent: %u bits",
                 mpz_sizeinbase(this->xa, 2));