mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
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.
This commit is contained in:
parent
1621dc1cc5
commit
aa529f776d
@ -1594,7 +1594,7 @@ static int ssl_sock_load_ocsp(SSL_CTX *ctx, const struct cert_key_and_chain *ckc
|
||||
OCSP_CERTID_free(cid);
|
||||
|
||||
if (ocsp)
|
||||
free(ocsp);
|
||||
ssl_sock_free_ocsp(ocsp);
|
||||
|
||||
if (warn)
|
||||
free(warn);
|
||||
|
Loading…
Reference in New Issue
Block a user