BCJSSE: Convert ServerName to BCSNIHostName using raw name data
@@ -376,7 +376,7 @@ static BCSNIServerName convertSNIServerName(ServerName serverName)
switch (serverName.getNameType())
{
case BCStandardConstants.SNI_HOST_NAME:
- return new BCSNIHostName(serverName.getHostName());
+ return new BCSNIHostName(serverName.getNameData());
default:
return null;
}
