]> 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:20 +0000 (15:49 +0100)
commit9e1fb45a18956bfb85bebc6c6458f1086256ad52
tree5a1ab56accdd8c3a2a0aa5b569e7495c0978cec3
parent2560c117ae5bcb49939f7734b47bb3e6aaf3d847
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