mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-12 05:32:16 -04:00
BUG/MINOR: ssl: Fix OCSP_CERTID leak when same certificate is used multiple times
If a given certificate is used multiple times in a configuration, the ocsp_cid field would have been overwritten during each ssl_sock_load_ocsp call even if it was previously filled. This patch does not need to be backported.
This commit is contained in:
parent
fc92b8bda5
commit
2d1daa8095
1 changed files with 2 additions and 1 deletions
|
|
@ -1150,7 +1150,8 @@ static int ssl_sock_load_ocsp(SSL_CTX *ctx, struct ckch_data *data, STACK_OF(X50
|
|||
if (!issuer)
|
||||
goto out;
|
||||
|
||||
data->ocsp_cid = OCSP_cert_to_id(0, x, issuer);
|
||||
if (!data->ocsp_cid)
|
||||
data->ocsp_cid = OCSP_cert_to_id(0, x, issuer);
|
||||
if (!data->ocsp_cid)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue