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

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


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 6c95c3f8c5 Sorts are not in-place sorts
6c95c3f8c5 is described below

commit 6c95c3f8c55892cf70160459cedf5fdf0cf27852
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jun 12 17:02:44 2026 +0100

    Sorts are not in-place sorts
---
 .../util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/java/org/apache/tomcat/util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java
 
b/java/org/apache/tomcat/util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java
index fbbbfd86e4..70f846e124 100644
--- 
a/java/org/apache/tomcat/util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java
+++ 
b/java/org/apache/tomcat/util/net/openssl/ciphers/OpenSSLCipherConfigurationParser.java
@@ -511,7 +511,7 @@ public class OpenSSLCipherConfigurationParser {
         complementOfDefault.addAll(aliases.get(CAMELLIA));
         complementOfDefault.addAll(aliases.get(AESCCM));
         complementOfDefault.addAll(aliases.get(ARIA));
-        defaultSort(complementOfDefault);
+        complementOfDefault = defaultSort(complementOfDefault);
         addListAlias(COMPLEMENTOFDEFAULT, complementOfDefault);
 
         initialized = true;
@@ -736,7 +736,7 @@ public class OpenSSLCipherConfigurationParser {
                     moveToEnd(ciphers, alias);
                 }
             } else if ("@STRENGTH".equals(element)) {
-                strengthSort(ciphers);
+                ciphers = strengthSort(ciphers);
             } else if (aliases.containsKey(element)) {
                 add(ciphers, element);
             } else if (element.contains(AND)) {


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

Reply via email to