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

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 24c6f2d303 Should be using a direct buffer
24c6f2d303 is described below

commit 24c6f2d303dd3da5637df7dd1ca187a68b657a6d
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Sep 1 13:11:17 2026 +0100

    Should be using a direct buffer
---
 java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java 
b/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java
index c2ee5b9a32..4b7f81ca0c 100644
--- a/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java
+++ b/java/org/apache/tomcat/util/net/openssl/OpenSSLEngine.java
@@ -135,7 +135,7 @@ public final class OpenSSLEngine extends SSLEngine 
implements SSLUtil.ProtocolIn
 
     private static final String INVALID_CIPHER = "SSL_NULL_WITH_NULL_NULL";
 
-    private static final long EMPTY_ADDR = 
Buffer.address(ByteBuffer.allocate(0));
+    private static final long EMPTY_ADDR = 
Buffer.address(ByteBuffer.allocateDirect(0));
 
     // OpenSSL state
     private final long ssl;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to