openssl/crypto/cmp
Niels Dossche 9e1fb45a18 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 56160f173d)
2025-02-25 15:49:20 +01:00
..
build.info Chunk 10 of CMP contribution to OpenSSL: CMP http client and related tests 2020-04-02 18:17:00 +02:00
cmp_asn.c Copyright year updates 2023-09-19 14:57:48 +02:00
cmp_client.c Fix potential leak in error path in cert_response() 2025-02-25 15:49:20 +01:00
cmp_ctx.c Update copyright year 2023-05-30 14:11:01 +02:00
cmp_err.c CMP client: fix error response on -csr without private key, also in docs 2023-05-12 11:00:42 +02:00
cmp_hdr.c Fix CMP code to not assume NUL terminated strings 2021-08-24 14:22:06 +01:00
cmp_http.c Remove duplicated #include headers 2022-11-21 10:49:51 +01:00
cmp_local.h Update copyright year 2023-05-30 14:11:01 +02:00
cmp_msg.c Update copyright year 2023-05-30 14:11:01 +02:00
cmp_protect.c Update copyright year 2023-05-30 14:11:01 +02:00
cmp_server.c Update copyright year 2023-05-30 14:11:01 +02:00
cmp_status.c Copyright year updates 2023-09-19 14:57:48 +02:00
cmp_util.c Update copyright year 2022-10-11 13:20:27 +01:00
cmp_vfy.c Update copyright year 2023-05-30 14:11:01 +02:00