mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
NULL dereference.
This commit is contained in:
@@ -1244,6 +1244,9 @@ int wolfSSL_EVP_PKEY_keygen(WOLFSSL_EVP_PKEY_CTX *ctx,
|
||||
if (pkey == NULL) {
|
||||
ownPkey = 1;
|
||||
pkey = wolfSSL_PKEY_new();
|
||||
|
||||
if (pkey == NULL)
|
||||
return ret;
|
||||
}
|
||||
|
||||
switch (pkey->type) {
|
||||
|
Reference in New Issue
Block a user