]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/provider_conf.c: Fix possible memory leak
authorJiashengJiang <jiasheng@purdue.edu>
Mon, 5 May 2025 01:41:39 +0000 (21:41 -0400)
committerTomas Mraz <tomas@openssl.org>
Wed, 7 May 2025 09:49:06 +0000 (11:49 +0200)
commit9884f1dc11675a5c4613339cfb92903c6ba6103f
treeb3b9698f753877c7d34cb06f46d8277d09242610
parent3f5dc064d0219237655dac940272892b35f3ffad
crypto/provider_conf.c: Fix possible memory leak

Assign the return value of ossl_provider_info_add_to_store to added instead of
setting it directly to 1, in order to avoid a memory leak caused by entry not
being freed if ossl_provider_info_add_to_store() fails.

Signed-off-by: JiashengJiang <jiasheng@purdue.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27472)
crypto/provider_conf.c