mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
Fix coverity CID #1465525 - NULL pointer dereference in OSSL_DECODER_CTX_new_by_EVP_PKEY()
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/12628)
This commit is contained in:
parent
e499a64bef
commit
75348bb298
@ -369,8 +369,10 @@ OSSL_DECODER_CTX *OSSL_DECODER_CTX_new_by_EVP_PKEY(EVP_PKEY **pkey,
|
||||
|
||||
data->process_data = NULL;
|
||||
err:
|
||||
decoder_clean_EVP_PKEY_construct_arg(data->process_data);
|
||||
sk_OPENSSL_CSTRING_free(data->names);
|
||||
OPENSSL_free(data);
|
||||
if (data != NULL) {
|
||||
decoder_clean_EVP_PKEY_construct_arg(data->process_data);
|
||||
sk_OPENSSL_CSTRING_free(data->names);
|
||||
OPENSSL_free(data);
|
||||
}
|
||||
return ctx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user