--- a/src/java.base/share/classes/sun/security/ssl/KeyShareExtension.java Sat Jun 02 07:24:25 2018 -0700
+++ b/src/java.base/share/classes/sun/security/ssl/KeyShareExtension.java Sat Jun 02 07:50:25 2018 -0700
@@ -344,7 +344,7 @@
List<SSLCredentials> credentials = new LinkedList<>();
for (KeyShareEntry entry : spec.clientShares) {
NamedGroup ng = NamedGroup.valueOf(entry.namedGroupId);
- if (ng != null && !SupportedGroups.isActivatable(
+ if (ng == null || !SupportedGroups.isActivatable(
shc.sslConfig.algorithmConstraints, ng)) {
if (SSLLogger.isOn && SSLLogger.isOn("ssl,handshake")) {
SSLLogger.fine(