openssl/crypto/cmp
Niels Dossche 0bd7eb2099 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:02 +01:00
..
build.info allow to disable http 2023-06-06 11:05:02 +10:00
cmp_asn.c Copyright year updates 2024-09-05 09:35:49 +02:00
cmp_client.c Fix potential leak in error path in cert_response() 2025-02-25 15:49:02 +01:00
cmp_ctx.c Copyright year updates 2024-04-09 13:43:26 +02:00
cmp_err.c CMP: add support for requesting cert template using genm/genp 2024-06-20 13:38:13 +02:00
cmp_genm.c Copyright year updates 2024-09-05 09:35:49 +02:00
cmp_hdr.c Copyright year updates 2024-09-05 09:35:49 +02:00
cmp_http.c CMP: fix OSSL_CMP_MSG_http_perform() by adding option OSSL_CMP_OPT_USE_TLS 2023-10-10 20:36:06 +02:00
cmp_local.h CMP: add support for requesting cert template using genm/genp 2024-06-20 13:38:13 +02:00
cmp_msg.c Fix doc and use of_X509v3_add_extensions() in case sk_X509_EXTENSION_num(exts) <= 0 2024-11-13 17:20:26 +01:00
cmp_protect.c Copyright year updates 2023-09-07 09:59:15 +01:00
cmp_server.c Copyright year updates 2024-09-05 09:35:49 +02:00
cmp_status.c Copyright year updates 2023-09-07 09:59:15 +01:00
cmp_util.c CMP+CRMF: fix formatting nits in crypto/, include/, and test/ 2022-11-24 13:45:06 +01:00
cmp_vfy.c OSSL_CMP_validate_msg(): fix check such that OSSL_CMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IR becomes usable again 2024-06-17 10:54:03 +02:00