JSSE: return unmodifiable list instead of internal mutable list
parent
792c73d193
commit
a6b840691c
|
|
@ -140,7 +140,8 @@ public class WolfSSLImplementSSLSession extends ExtendedSSLSession {
|
|||
* @return list of stored SNI server names, may be null
|
||||
*/
|
||||
public synchronized List<SNIServerName> getSNIServerNames() {
|
||||
return this.sniServerNames;
|
||||
return (this.sniServerNames == null) ? null :
|
||||
Collections.unmodifiableList(this.sniServerNames);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue