mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-19 21:45:33 +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:
parent
b829dda57b
commit
5c3c96fd36
@ -3126,6 +3126,10 @@ static void ssl_sock_free_cert_key_and_chain_contents(struct cert_key_and_chain
|
|||||||
free(ckch->ocsp_response);
|
free(ckch->ocsp_response);
|
||||||
ckch->ocsp_response = NULL;
|
ckch->ocsp_response = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ckch->ocsp_issuer)
|
||||||
|
X509_free(ocsp_issuer);
|
||||||
|
ckch->ocsp_issuer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user