diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-11-02 17:00:58 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-11-02 20:27:54 +0100 |
commit | 817d165cbc49d42fb1ace3161b362ba4f2bd3dd5 (patch) | |
tree | b8ad6adc84596e915241f96326b28bc921989866 /src/libstrongswan | |
parent | 43cd036a771c5a3ca120dd15e553c06ce8321e04 (diff) | |
download | strongswan-817d165cbc49d42fb1ace3161b362ba4f2bd3dd5.tar.bz2 strongswan-817d165cbc49d42fb1ace3161b362ba4f2bd3dd5.tar.xz |
pkcs11: Memory leak fixed in DH/ECDH implementation.
Diffstat (limited to 'src/libstrongswan')
-rw-r--r-- | src/libstrongswan/plugins/pkcs11/pkcs11_dh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/pkcs11/pkcs11_dh.c b/src/libstrongswan/plugins/pkcs11/pkcs11_dh.c index e48f7dcfe..c870370c8 100644 --- a/src/libstrongswan/plugins/pkcs11/pkcs11_dh.c +++ b/src/libstrongswan/plugins/pkcs11/pkcs11_dh.c @@ -353,8 +353,10 @@ static pkcs11_dh_t *create_ecp(diffie_hellman_group_t group, chunk_t ecparam) { if (generate_key_pair_ecp(this, ecparam)) { + chunk_free(&ecparam); return &this->public; } + chunk_free(&ecparam); free(this); } return NULL; |