X509_GET_PUBKEY(3) return value check in libcrypto
authorinoguchi <inoguchi@openbsd.org>
Sat, 22 Jan 2022 00:33:02 +0000 (00:33 +0000)
committerinoguchi <inoguchi@openbsd.org>
Sat, 22 Jan 2022 00:33:02 +0000 (00:33 +0000)
commit99804f4347dd8b75b116db1fd08f8c15f7dec718
treee55b144f046aa50df9c786b2652864474663fac7
parent0c07168c33db4cec87695af76e4614b0288f111f
X509_GET_PUBKEY(3) return value check in libcrypto

ok beck@ tb@

suggest using X509_get0_pubkey() and remove EVP_PKEY_free() from tb@
lib/libcrypto/ocsp/ocsp_vfy.c