mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-28 10:44:38 +00:00
coverity 1462573 Dereference after null check
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11651)
This commit is contained in:
parent
cb383f10d1
commit
5e12a13af7
@ -93,7 +93,7 @@ static int gen_init(EVP_PKEY_CTX *ctx, int operation)
|
||||
#endif
|
||||
|
||||
end:
|
||||
if (ret <= 0)
|
||||
if (ret <= 0 && ctx != NULL)
|
||||
ctx->operation = EVP_PKEY_OP_UNDEFINED;
|
||||
return ret;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user