This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new dc327dfe21 Return null SSL session on zero length array
dc327dfe21 is described below
commit dc327dfe21ace9e3f80ff3a0faa0a4597cf6a4a4
Author: remm <[email protected]>
AuthorDate: Mon Oct 7 11:08:31 2024 +0200
Return null SSL session on zero length array
---
java/org/apache/tomcat/util/net/jsse/JSSESupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/net/jsse/JSSESupport.java
b/java/org/apache/tomcat/util/net/jsse/JSSESupport.java
index 059cf7750c..d4438f66f4 100644
--- a/java/org/apache/tomcat/util/net/jsse/JSSESupport.java
+++ b/java/org/apache/tomcat/util/net/jsse/JSSESupport.java
@@ -170,7 +170,7 @@ public class JSSESupport implements SSLSupport,
SSLSessionManager {
}
// Expose ssl_session (getId)
byte [] ssl_session = session.getId();
- if ( ssl_session == null) {
+ if (ssl_session == null || ssl_session.length == 0) {
return null;
}
StringBuilder buf=new StringBuilder();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]