From aa529f776d24ecc84239a97456ed4835b6589350 Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Thu, 3 Nov 2022 15:16:49 +0100 Subject: [PATCH] BUG/MINOR: ssl: ocsp structure not freed properly in case of error In case of error, the ocsp item might already be in the ocsp certificate tree but simply freed instead of destroyed through ssl_sock_free_ocsp. This patch can be backported to all stable versions. --- src/ssl_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 801405b30..556020553 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -1594,7 +1594,7 @@ out: OCSP_CERTID_free(cid); if (ocsp) - free(ocsp); + ssl_sock_free_ocsp(ocsp); if (warn) free(warn);