diff options
author | Rich Salz <rsalz@openssl.org> | 2015-03-25 18:35:24 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-03-25 18:35:24 -0400 |
commit | 8fdc3734c063146b038608c2412a0f2c9b21b6d6 (patch) | |
tree | ed30d40a40a6bf7002121a29e3db4b4790a54d87 /ssl/ssl_cert.c | |
parent | 17dd65e6e1f888b4561d559b4d44fbbe0a0aa3e7 (diff) |
free NULL cleanup.
This gets EC_GROUP_clear_free EC_GROUP_free, EC_KEY_free,
EC_POINT_clear_free, EC_POINT_free
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'ssl/ssl_cert.c')
-rw-r--r-- | ssl/ssl_cert.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 367f7a9603..f05a60a30a 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -449,8 +449,7 @@ void ssl_cert_free(CERT *c) DH_free(c->dh_tmp); #endif #ifndef OPENSSL_NO_EC - if (c->ecdh_tmp) - EC_KEY_free(c->ecdh_tmp); + EC_KEY_free(c->ecdh_tmp); #endif ssl_cert_clear_certs(c); @@ -655,8 +654,7 @@ void ssl_sess_cert_free(SESS_CERT *sc) DH_free(sc->peer_dh_tmp); #endif #ifndef OPENSSL_NO_EC - if (sc->peer_ecdh_tmp != NULL) - EC_KEY_free(sc->peer_ecdh_tmp); + EC_KEY_free(sc->peer_ecdh_tmp); #endif OPENSSL_free(sc); |