14 lines
747 B
Diff
14 lines
747 B
Diff
|
Index: jdk17u-jdk-17.0.6-10/src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java
|
||
|
===================================================================
|
||
|
--- jdk17u-jdk-17.0.6-10.orig/src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java
|
||
|
+++ jdk17u-jdk-17.0.6-10/src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java
|
||
|
@@ -408,7 +408,7 @@ final class SSLSessionImpl extends Exten
|
||
|
} else {
|
||
|
requestedServerNames = new ArrayList<>();
|
||
|
while (len > 0) {
|
||
|
- int l = buf.get();
|
||
|
+ int l = Byte.toUnsignedInt(buf.get());
|
||
|
b = new byte[l];
|
||
|
buf.get(b, 0, l);
|
||
|
requestedServerNames.add(new SNIHostName(new String(b)));
|