diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-06-07 14:35:32 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-06-07 14:35:32 +0000 |
commit | 2a5558e2e49b5271273ed8ac85ab022f4112166b (patch) | |
tree | 0a50d54d2816633d0aa695c3a28757f158361316 /lib/libssl/s3_lib.c | |
parent | 73c1b68d37a64839b7f0e38b5674b20f2fb3db13 (diff) |
BIO_free has an implicit NULL check, so do not bother checking for NULL
before calling it.
Diffstat (limited to 'lib/libssl/s3_lib.c')
-rw-r--r-- | lib/libssl/s3_lib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c index 5ed0aee7d56..6165b2a1207 100644 --- a/lib/libssl/s3_lib.c +++ b/lib/libssl/s3_lib.c @@ -2337,8 +2337,7 @@ ssl3_free(SSL *s) if (s->s3->tmp.ca_names != NULL) sk_X509_NAME_pop_free(s->s3->tmp.ca_names, X509_NAME_free); - if (s->s3->handshake_buffer) - BIO_free(s->s3->handshake_buffer); + BIO_free(s->s3->handshake_buffer); if (s->s3->handshake_dgst) ssl3_free_digest_list(s); OPENSSL_cleanse(s->s3, sizeof *s->s3); |