diff options
author | Rich Salz <rsalz@akamai.com> | 2015-03-24 10:17:37 -0400 |
---|---|---|
committer | Rich Salz <rsalz@akamai.com> | 2015-03-24 23:17:16 -0400 |
commit | d64070838ebba86f00fb3755df5d3e65106e1628 (patch) | |
tree | def90b3063d9ebe0f53920604d02b9786216e327 /ssl/ssltest.c | |
parent | 1300705a47b9c9498b15a384c6c5348adc342e2c (diff) | |
download | openssl-d64070838ebba86f00fb3755df5d3e65106e1628.tar.gz |
free NULL cleanup
Start ensuring all OpenSSL "free" routines allow NULL, and remove
any if check before calling them.
This gets DH_free, DSA_free, RSA_free
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r-- | ssl/ssltest.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 457ba86a7b..d244ba3cd9 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -2968,10 +2968,8 @@ static RSA *tmp_rsa_cb(SSL *s, int is_export, int keylength) static void free_tmp_rsa(void) { - if (rsa_tmp != NULL) { - RSA_free(rsa_tmp); - rsa_tmp = NULL; - } + RSA_free(rsa_tmp); + rsa_tmp = NULL; } #endif |