Skip to content
Snippets Groups Projects
Commit 35d7405d authored by Andrea Ceccanti's avatar Andrea Ceccanti
Browse files

Be paranoid about certs extracted from the chain

parent 03d3d92b
No related branches found
No related tags found
No related merge requests found
......@@ -544,7 +544,7 @@ static X509* get_ee_cert(ngx_http_request_t* r)
// find first non-proxy and non-ca cert
for (int i = 0; i != sk_X509_num(chain); ++i) {
auto cert = sk_X509_value(chain, i);
if (is_ca(cert)) {
if (cert && is_ca(cert)) {
break;
}
if (cert && !is_proxy(cert)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment