mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Coverity 1503321 & 1503327: dereference after null check
The earlier fix being inadequate Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/18822)
This commit is contained in:
parent
1efd8533e1
commit
f913c3cd7e
@ -1252,7 +1252,7 @@ int ossl_provider_deactivate(OSSL_PROVIDER *prov, int removechildren)
|
||||
|
||||
void *ossl_provider_ctx(const OSSL_PROVIDER *prov)
|
||||
{
|
||||
return prov->provctx != NULL ? prov->provctx : NULL;
|
||||
return prov != NULL ? prov->provctx : NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user