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.
(cherry picked from commit aa529f776d
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
This commit is contained in:
committed by
Christopher Faulet
parent
d842a5a47d
commit
09ae90d983
@ -1594,7 +1594,7 @@ out:
|
||||
OCSP_CERTID_free(cid);
|
||||
|
||||
if (ocsp)
|
||||
free(ocsp);
|
||||
ssl_sock_free_ocsp(ocsp);
|
||||
|
||||
if (warn)
|
||||
free(warn);
|
||||
|
Reference in New Issue
Block a user