You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2022/12/01 14:36:27 UTC
[trafficserver] branch master updated: oscp crashfix: add check for the validity of the certLookup (#9192)
This is an automated email from the ASF dual-hosted git repository.
bnolsen 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 c983006ec oscp crashfix: add check for the validity of the certLookup (#9192)
c983006ec is described below
commit c983006eccbce9365224c2cd30372528ac8df843
Author: Brian Olsen <br...@comcast.com>
AuthorDate: Thu Dec 1 07:36:19 2022 -0700
oscp crashfix: add check for the validity of the certLookup (#9192)
---
iocore/net/OCSPStapling.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iocore/net/OCSPStapling.cc b/iocore/net/OCSPStapling.cc
index 29a83f9c8..a28098ae1 100644
--- a/iocore/net/OCSPStapling.cc
+++ b/iocore/net/OCSPStapling.cc
@@ -510,7 +510,7 @@ ocsp_update()
time_t current_time;
SSLCertificateConfig::scoped_config certLookup;
- const unsigned ctxCount = certLookup->count();
+ const unsigned ctxCount = certLookup ? certLookup->count() : 0;
Debug("ssl_ocsp", "updating OCSP data");
for (unsigned i = 0; i < ctxCount; i++) {