]> git.ipfire.org Git - thirdparty/openssl.git/commit
fix potential memory leak in PKCS12_add_key_ex()
authorsashan <anedvedicky@gmail.com>
Wed, 22 May 2024 07:16:49 +0000 (09:16 +0200)
committerTodd Short <todd.short@me.com>
Tue, 18 Jun 2024 17:46:31 +0000 (13:46 -0400)
commitdabefe2b3aeefb041d4f08bd45ec5fc64909edf4
treed8a736195883f6ee082be1d6dcaac698a4a59f83
parentebe05d92d75d1f623608894e14b9488d50843db5
fix potential memory leak in PKCS12_add_key_ex()

function must make sure memorry allocated for `p8`
gets freed in error path. Issue reported by LuMingYinDetect

Fixes #24453

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/24456)
crypto/pkcs12/p12_crt.c