Fix a potential NULL-deref in EVP_PKEY_keygen()
authortb <tb@openbsd.org>
Fri, 12 Apr 2024 02:56:15 +0000 (02:56 +0000)
committertb <tb@openbsd.org>
Fri, 12 Apr 2024 02:56:15 +0000 (02:56 +0000)
commitdb6d3e6b18498cb55d8e0f10180846108c079c47
tree50996cf5fe18d83fecbb0f84ac348f7168e4ab56
parent90c45c291d1158419d04fe7e78be7c295dd8c78e
Fix a potential NULL-deref in EVP_PKEY_keygen()

After a EVP_PKEY_new() failure, a NULL pointer would be passed to the
keygen pmeth, which could result in tears.

ok beck jsing
lib/libcrypto/evp/pmeth_gn.c