X509_GET_PUBKEY(3) return value check in libcrypto
authorinoguchi <inoguchi@openbsd.org>
Sat, 22 Jan 2022 00:34:48 +0000 (00:34 +0000)
committerinoguchi <inoguchi@openbsd.org>
Sat, 22 Jan 2022 00:34:48 +0000 (00:34 +0000)
commitc10e594f68bc8f990ceac9fb051888d605c77092
treef9c937e43d8f56ef451e1d6b560e682534324526
parent99804f4347dd8b75b116db1fd08f8c15f7dec718
X509_GET_PUBKEY(3) return value check in libcrypto

CID 25131

ok beck@ tb@

suggest using X509_REQ_get0_pubkey() and remove the EVP_PKEY_free() from tb@
lib/libcrypto/x509/x509_req.c