This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new a49c20acb7 OCSP update: fix ctxCount to be specific about the type 
(#10984)
a49c20acb7 is described below

commit a49c20acb710939893c23e50f77608b0815470d5
Author: Brian Neradt <[email protected]>
AuthorDate: Wed Jan 10 17:46:10 2024 -0600

    OCSP update: fix ctxCount to be specific about the type (#10984)
    
    When OCSP calculates the number of contexts for each type, it has to
    limit the lookup based upon type applicable to the type it is
    processing.
---
 src/iocore/net/OCSPStapling.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/iocore/net/OCSPStapling.cc b/src/iocore/net/OCSPStapling.cc
index f7db33e3a6..238d9a244a 100644
--- a/src/iocore/net/OCSPStapling.cc
+++ b/src/iocore/net/OCSPStapling.cc
@@ -1267,7 +1267,7 @@ ocsp_update()
   const SSLCertContextType ctxTypes[] = {SSLCertContextType::RSA, 
SSLCertContextType::EC};
 #endif
   for (const auto &ctxType : ctxTypes) {
-    const unsigned ctxCount = certLookup ? certLookup->count() : 0;
+    const unsigned ctxCount = certLookup ? certLookup->count(ctxType) : 0;
     for (unsigned i = 0; i < ctxCount; i++) {
       SSLCertContext *cc = certLookup->get(i, ctxType);
       if (cc) {

Reply via email to