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/ssl_cert.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/ssl_cert.c')
-rw-r--r-- | lib/libssl/ssl_cert.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libssl/ssl_cert.c b/lib/libssl/ssl_cert.c index 44efb64deac..ce8a6b54e09 100644 --- a/lib/libssl/ssl_cert.c +++ b/lib/libssl/ssl_cert.c @@ -628,8 +628,7 @@ err: } if (sk != NULL) sk_X509_NAME_free(sk); - if (in != NULL) - BIO_free(in); + BIO_free(in); if (x != NULL) X509_free(x); if (ret != NULL) @@ -688,8 +687,7 @@ SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack, err: ret = 0; } - if (in != NULL) - BIO_free(in); + BIO_free(in); if (x != NULL) X509_free(x); |