Use chunk_clear to memwipe shared secret

This commit is contained in:
Thomas Egerer authored and Tobias Brunner committed 2011-11-04 11:11:17 +01:00
1 parent dbd2169569
commit 42e2da606c
1 file changed
+1 -1
@@ -219,7 +219,7 @@ METHOD(diffie_hellman_t, set_other_public_value, void,
return;
}
chunk_free(&this->shared_secret);
chunk_clear(&this->shared_secret);
if (!compute_shared_key(this, &this->shared_secret)) {
DBG1(DBG_LIB, "ECDH shared secret computation failed");