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

schultz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git


The following commit(s) were added to refs/heads/main by this push:
     new f9ef51e15 Explicitly initialize *resp to NULL
f9ef51e15 is described below

commit f9ef51e15c55dbe98707b69709f16b03181d4b81
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 3878afa6b..1ee51329b 100644
--- a/native/src/sslutils.c
+++ b/native/src/sslutils.c
@@ -1077,7 +1077,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]

Reply via email to