]> 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:40:17 +0000 (13:40 -0400)
commit32c09691586b34091fcb7fa5679bc1b662d95112
tree810e6c49de5f9c864683704d07c543e2a188c06f
parent7f9d4ee33e9b0546af39bd4e99f9c3403b849788
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