]> 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:36:56 +0000 (13:36 -0400)
commit7301759afedffaf2f106495b3b171de9abfa2d2a
tree8f1ebf649c1b0b5ab25cc6bd259b0cf58ec330f3
parent929fcc57125b8ed3cc58b254bdc1790a8136247e
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