Avoid NULL dereference in EVP_PKEY_paramgen()
authortb <tb@openbsd.org>
Wed, 17 Apr 2024 08:24:11 +0000 (08:24 +0000)
committertb <tb@openbsd.org>
Wed, 17 Apr 2024 08:24:11 +0000 (08:24 +0000)
commitdc7bfa45b82ffcce7e66aeae4c54a79f34b064d4
tree018aa383fe2a645e1fa83da9edb23924910401ad
parent8fada27075f654a9f0ae1d54fb045ac5034f91ec
Avoid NULL dereference in EVP_PKEY_paramgen()

If EVP_PKEY_new() returns NULL, it would be passed to the paramgen() pmeth
which would typically dereference it. This is identical to a recent change
in keygen().

ok jsing
lib/libcrypto/evp/pmeth_gn.c