summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/s3_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-06-07 14:35:31 +0000
committerjsing <jsing@openbsd.org>2014-06-07 14:35:31 +0000
commit73c984695c120b2104b8032d74e4a7dca76f90fa (patch)
tree48c7e0738084198b2816ed8948806f9766075186 /lib/libssl/src/ssl/s3_lib.c
parentssl3_release_{read,write}_buffer() handle being called with NULL buffers, (diff)
downloadwireguard-openbsd-73c984695c120b2104b8032d74e4a7dca76f90fa.tar.xz
wireguard-openbsd-73c984695c120b2104b8032d74e4a7dca76f90fa.zip
BIO_free has an implicit NULL check, so do not bother checking for NULL
before calling it.
Diffstat (limited to 'lib/libssl/src/ssl/s3_lib.c')
-rw-r--r--lib/libssl/src/ssl/s3_lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/s3_lib.c b/lib/libssl/src/ssl/s3_lib.c
index 5ed0aee7d56..6165b2a1207 100644
--- a/lib/libssl/src/ssl/s3_lib.c
+++ b/lib/libssl/src/ssl/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);