aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2015-03-28 10:44:23 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2015-03-28 10:44:23 +0100
commitff96400d13e757385be62cab2df9f69a7d829040 (patch)
tree346f574a6adb6fd09c3ca50a5a61ed0c8dc5935b
parent9310d4250aa243e34099f152c10bc9f1e82b280b (diff)
downloadstrongswan-5.3.0.tar.bz2
strongswan-5.3.0.tar.xz
Wipe auxiliary key store5.3.0
-rw-r--r--src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c b/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c
index 0ca24d76a..4fcb168fa 100644
--- a/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c
+++ b/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c
@@ -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));