Fix leak in cms_RecipientInfo_kekri_decrypt()
authortb <tb@openbsd.org>
Wed, 8 Sep 2021 14:33:02 +0000 (14:33 +0000)
committertb <tb@openbsd.org>
Wed, 8 Sep 2021 14:33:02 +0000 (14:33 +0000)
commit3cd888acd571765f2f8c29ab7d8deda4b929eb51
tree3dde329420f0c658b9f633847226cc9154a92da0
parent58afdee70d18227ff57089cd50d71573337e811d
Fix leak in cms_RecipientInfo_kekri_decrypt()

Free ec->key before reassigning it.

From OpenSSL 1.1.1, 58e1e397

ok inoguchi
lib/libcrypto/cms/cms_env.c