]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix potential memory leak in policy_section()
authorNiels Dossche <niels.dossche@ugent.be>
Tue, 21 Jan 2025 11:04:44 +0000 (12:04 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 25 Feb 2025 14:52:13 +0000 (15:52 +0100)
commitececabd9adb4b4def9c044491f993b94ba0c618f
treeb3368ced26b3a79f6734d57da3af2e39cf58d5c0
parentbe5965acad7a1c45e49411bcf4abad99d106a7c1
Fix potential memory leak in policy_section()

If sk_POLICYQUALINFO_push() fails, qual is not freed.
Fix it by adding POLICYQUALINFO_free() to the error path.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26499)
crypto/x509/v3_cpols.c