mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-29 11:14:36 +00:00
Coverity 1453630: Null pointer dereferences (FORWARD_NULL)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/9805)
This commit is contained in:
parent
6ce4ff1915
commit
085f1d11a0
@ -174,7 +174,8 @@ static int gmac_set_ctx_params(void *vmacctx, const OSSL_PARAM params[])
|
||||
OPENSSL_CTX *provctx = PROV_LIBRARY_CONTEXT_OF(macctx->provctx);
|
||||
const OSSL_PARAM *p;
|
||||
|
||||
if (!ossl_prov_cipher_load_from_params(&macctx->cipher, params, provctx))
|
||||
if (ctx == NULL
|
||||
|| !ossl_prov_cipher_load_from_params(&macctx->cipher, params, provctx))
|
||||
return 0;
|
||||
|
||||
if (EVP_CIPHER_mode(ossl_prov_cipher_cipher(&macctx->cipher))
|
||||
|
Loading…
x
Reference in New Issue
Block a user