diff options
author | jsing <> | 2014-06-07 14:35:31 +0000 |
---|---|---|
committer | jsing <> | 2014-06-07 14:35:31 +0000 |
commit | c2b57cdd8d2c468fd3c1895b1d3aea730c70edcd (patch) | |
tree | ea9e7999ecbeb7455dfe4ef6876cbcbdd7888c13 /src/lib/libssl/ssl_cert.c | |
parent | ae0771eca079417ae5f9a2081994d980817297e3 (diff) | |
download | openbsd-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/ssl_cert.c')
-rw-r--r-- | src/lib/libssl/ssl_cert.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c index 44efb64dea..ce8a6b54e0 100644 --- a/src/lib/libssl/ssl_cert.c +++ b/src/lib/libssl/ssl_cert.c | |||
@@ -628,8 +628,7 @@ err: | |||
628 | } | 628 | } |
629 | if (sk != NULL) | 629 | if (sk != NULL) |
630 | sk_X509_NAME_free(sk); | 630 | sk_X509_NAME_free(sk); |
631 | if (in != NULL) | 631 | BIO_free(in); |
632 | BIO_free(in); | ||
633 | if (x != NULL) | 632 | if (x != NULL) |
634 | X509_free(x); | 633 | X509_free(x); |
635 | if (ret != NULL) | 634 | if (ret != NULL) |
@@ -688,8 +687,7 @@ SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack, | |||
688 | err: | 687 | err: |
689 | ret = 0; | 688 | ret = 0; |
690 | } | 689 | } |
691 | if (in != NULL) | 690 | BIO_free(in); |
692 | BIO_free(in); | ||
693 | if (x != NULL) | 691 | if (x != NULL) |
694 | X509_free(x); | 692 | X509_free(x); |
695 | 693 | ||