This is an automated email from the ASF dual-hosted git repository.
markt 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 ca6206d4f Limit the boundary of ocsp payload chars (#39)
ca6206d4f is described below
commit ca6206d4f054f27a027b1182ddfcd3ed0f11e74a
Author: Chenjp <[email protected]>
AuthorDate: Sat Feb 14 01:35:12 2026 +0800
Limit the boundary of ocsp payload chars (#39)
Code review: Using actual ocsp response payload size.
---
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 4d3781a21..741f09035 100644
--- a/native/src/sslutils.c
+++ b/native/src/sslutils.c
@@ -940,7 +940,7 @@ static OCSP_RESPONSE *ocsp_get_resp(apr_pool_t *mp,
apr_socket_t *sock)
}
}
- resp = parse_ocsp_resp(buf, buflen);
+ resp = parse_ocsp_resp(buf, totalread);
apr_pool_destroy(p);
return resp;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]