Rework EVP_PKEY_free()
authortb <tb@openbsd.org>
Mon, 25 Dec 2023 21:41:19 +0000 (21:41 +0000)
committertb <tb@openbsd.org>
Mon, 25 Dec 2023 21:41:19 +0000 (21:41 +0000)
commit8ae31416c90de5328547584b03014c0dbd4f7547
treeaf6e0f87f4c4b244e931b63ba4feb8c895b93235
parent543ad17db49fca32cf36d906a339dafc9907c05c
Rework EVP_PKEY_free()

Use pkey instead of x, remove the pointless variable i, no need to check
for NULL before sk_X509_ATTRIBUTE_pop_free(), switch to freezero() to
leave fewer invalid pointers around.

ok jsing
lib/libcrypto/evp/p_lib.c