Fix leaks in ecx_set_{priv,pub}_key()
authortb <tb@openbsd.org>
Wed, 23 Nov 2022 07:37:06 +0000 (07:37 +0000)
committertb <tb@openbsd.org>
Wed, 23 Nov 2022 07:37:06 +0000 (07:37 +0000)
commite309ac148bb3db6163b04922832de1128afec6d9
tree09f264cbbf811249e2b2e44a69575a3911b47187
parentad58af2d2eed40c25b43a1973c4176784ff6226b
Fix leaks in ecx_set_{priv,pub}_key()

When ecx_key_set_{priv,pub}() fails, ecx_key is leaked.

CID 377014

From jsing
lib/libcrypto/ec/ecx_methods.c