Skip to content

Commit 27bfc0b

Browse files
committed
JSSE: return unmodifiable list from all getRequestedServerNames() paths
1 parent 3c88885 commit 27bfc0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java/com/wolfssl/provider/jsse/WolfSSLImplementSSLSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ public synchronized List<SNIServerName> getRequestedServerNames()
11581158
sniNames.add(sniName);
11591159
this.sniServerNames = new ArrayList<SNIServerName>(sniNames);
11601160

1161-
return sniNames;
1161+
return Collections.unmodifiableList(sniNames);
11621162
}
11631163
} catch (IllegalArgumentException e) {
11641164
throw new UnsupportedOperationException(e);

0 commit comments

Comments
 (0)