diff options
author | 2014-06-07 14:35:31 +0000 | |
---|---|---|
committer | 2014-06-07 14:35:31 +0000 | |
commit | 73c984695c120b2104b8032d74e4a7dca76f90fa (patch) | |
tree | 48c7e0738084198b2816ed8948806f9766075186 /lib/libssl/s3_lib.c | |
parent | ssl3_release_{read,write}_buffer() handle being called with NULL buffers, (diff) | |
download | wireguard-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/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); |