diff options
author | jsing <> | 2014-06-07 14:35:31 +0000 |
---|---|---|
committer | jsing <> | 2014-06-07 14:35:31 +0000 |
commit | fc67d395c9b33d43e29d79d767361c042fdf40db (patch) | |
tree | ea9e7999ecbeb7455dfe4ef6876cbcbdd7888c13 /src/lib/libssl/s3_lib.c | |
parent | 7b59b3ef46edc83b34ba680c1ed29e5eb5a5cb27 (diff) | |
download | openbsd-fc67d395c9b33d43e29d79d767361c042fdf40db.tar.gz openbsd-fc67d395c9b33d43e29d79d767361c042fdf40db.tar.bz2 openbsd-fc67d395c9b33d43e29d79d767361c042fdf40db.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.c | 3 |
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); |