diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-12-18 16:15:49 +0100 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-12-21 12:11:49 +0100 |
commit | 79b2a2f2eedb9d6b24a3f6748332328cf54568fb (patch) | |
tree | 31d61a9636cccc6a378871407b11fc1fc89aa8c6 /engines | |
parent | Fix fixup postrelease scripts to avoid creating errors (diff) | |
download | openssl-79b2a2f2eedb9d6b24a3f6748332328cf54568fb.tar.xz openssl-79b2a2f2eedb9d6b24a3f6748332328cf54568fb.zip |
add OSSL_STACK_OF_X509_free() for commonly used pattern
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17307)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/e_loader_attic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c index e675b006a8..e2a5474c1c 100644 --- a/engines/e_loader_attic.c +++ b/engines/e_loader_attic.c @@ -375,7 +375,7 @@ static OSSL_STORE_INFO *try_decode_PKCS12(const char *pem_name, } EVP_PKEY_free(pkey); X509_free(cert); - sk_X509_pop_free(chain, X509_free); + OSSL_STACK_OF_X509_free(chain); store_info_free(osi_pkey); store_info_free(osi_cert); store_info_free(osi_ca); |