Github user zwoop commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1488#discussion_r103039820
  
    --- Diff: iocore/net/SSLUtils.cc ---
    @@ -2007,7 +2007,10 @@ SSLParseCertificateConfiguration(const 
SSLConfigParams *params, SSLCertLookup *l
             if (ssl_extract_certificate(&line_info, sslMultiCertSettings)) {
               // There must be a certificate specified unless the tunnel 
action is set
               if (sslMultiCertSettings.cert || sslMultiCertSettings.opt != 
SSLCertContext::OPT_TUNNEL) {
    -            ssl_store_ssl_context(params, lookup, &sslMultiCertSettings);
    +            if (ssl_store_ssl_context(params, lookup, 
&sslMultiCertSettings) == nullptr) {
    +              Error("failed to load SSL server contexts");
    +              return false;
    +            }
               } else {
    --- End diff --
    
    Yeh, it's not used, but the point is that we stop parsing the configuration 
at this point, which leaves lookup->is_valid == false (correctly). I believe in 
the old version, the status of the lookup is the status of the *last* 
certificate in the configuration.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to