]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix potential leak in error path in cert_response()
authorNiels Dossche <niels.dossche@ugent.be>
Wed, 22 Jan 2025 13:35:25 +0000 (14:35 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 25 Feb 2025 14:49:27 +0000 (15:49 +0100)
commit0edc5b05ece339d0ce403e6e85f5ee826cdf2185
tree82d4360484fb3383d44a69191a3da633c0464b6d
parent2a65dcec25c30e1a6af5af4e994722187504966f
Fix potential leak in error path in cert_response()

get1_cert_status() returns an object that must be freed,
but the error path does not do that.
Fix it by adding a call to X509_free() in 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/26513)

(cherry picked from commit 56160f173d055486357b7a315ab4e9579b2538d5)
crypto/cmp/cmp_client.c