1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-04-07 01:31:35 +00:00

BUG/MINOR: ssl: memory leak w/ the ocsp_issuer

This patch frees the ocsp_issuer in
ssl_sock_free_cert_key_and_chain_contents().

Shoudl be backported in 2.1.
This commit is contained in:
William Lallemand 2020-01-23 11:53:13 +01:00
parent b829dda57b
commit 5c3c96fd36

View File

@ -3126,6 +3126,10 @@ static void ssl_sock_free_cert_key_and_chain_contents(struct cert_key_and_chain
free(ckch->ocsp_response);
ckch->ocsp_response = NULL;
}
if (ckch->ocsp_issuer)
X509_free(ocsp_issuer);
ckch->ocsp_issuer = NULL;
}
/*