This is an automated email from the ASF dual-hosted git repository.
schultz pushed a commit to branch 1.3.x
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/1.3.x by this push:
new 8b9c2a54f Explicitly initialize *resp to NULL
8b9c2a54f is described below
commit 8b9c2a54fa819505483d42149c55da35bbcff393
Author: Christopher Schultz <[email protected]>
AuthorDate: Wed Dec 17 07:48:51 2025 -0500
Explicitly initialize *resp to NULL
---
native/src/sslutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/native/src/sslutils.c b/native/src/sslutils.c
index 171383006..8637641fe 100644
--- a/native/src/sslutils.c
+++ b/native/src/sslutils.c
@@ -1123,7 +1123,7 @@ static int ssl_ocsp_request(X509 *cert, X509 *issuer,
X509_STORE_CTX *ctx, int t
the ocsp status. Otherwise, return OCSP_STATUS_UNKNOWN */
if (ocsp_urls != NULL) {
OCSP_REQUEST *req;
- OCSP_RESPONSE *resp;
+ OCSP_RESPONSE *resp = NULL;
/* for the time being just check for the fist response .. a better
approach is to iterate for all the possible ocsp urls */
req = get_ocsp_request(cert, issuer);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]