summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorjsing <>2014-06-07 14:35:31 +0000
committerjsing <>2014-06-07 14:35:31 +0000
commitc2b57cdd8d2c468fd3c1895b1d3aea730c70edcd (patch)
treeea9e7999ecbeb7455dfe4ef6876cbcbdd7888c13 /src/lib/libssl/s3_lib.c
parentae0771eca079417ae5f9a2081994d980817297e3 (diff)
downloadopenbsd-c2b57cdd8d2c468fd3c1895b1d3aea730c70edcd.tar.gz
openbsd-c2b57cdd8d2c468fd3c1895b1d3aea730c70edcd.tar.bz2
openbsd-c2b57cdd8d2c468fd3c1895b1d3aea730c70edcd.zip
BIO_free has an implicit NULL check, so do not bother checking for NULL
before calling it.
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r--src/lib/libssl/s3_lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index 5ed0aee7d5..6165b2a120 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -2337,8 +2337,7 @@ ssl3_free(SSL *s)
2337 2337
2338 if (s->s3->tmp.ca_names != NULL) 2338 if (s->s3->tmp.ca_names != NULL)
2339 sk_X509_NAME_pop_free(s->s3->tmp.ca_names, X509_NAME_free); 2339 sk_X509_NAME_pop_free(s->s3->tmp.ca_names, X509_NAME_free);
2340 if (s->s3->handshake_buffer) 2340 BIO_free(s->s3->handshake_buffer);
2341 BIO_free(s->s3->handshake_buffer);
2342 if (s->s3->handshake_dgst) 2341 if (s->s3->handshake_dgst)
2343 ssl3_free_digest_list(s); 2342 ssl3_free_digest_list(s);
2344 OPENSSL_cleanse(s->s3, sizeof *s->s3); 2343 OPENSSL_cleanse(s->s3, sizeof *s->s3);