changeset 17439:2ef29222b5f2

8190789: sun/security/provider/certpath/LDAPCertStore/TestURICertStoreParameters.java fails after JDK-8186606 Reviewed-by: mullan
author weijun
date Mon, 06 Nov 2017 22:06:01 +0800
parents 07e43269c710
children d54fb6a3fb55
files src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java	Sat Nov 04 09:18:51 2017 +0800
+++ b/src/java.naming/share/classes/sun/security/provider/certpath/ldap/LDAPCertStoreImpl.java	Mon Nov 06 22:06:01 2017 +0800
@@ -232,7 +232,7 @@
                 throw new CertStoreException("Name absent");
             }
             try {
-                if (new CompositeName(name).size() != 1) {
+                if (new CompositeName(name).size() > 1) {
                     throw new CertStoreException("Invalid name: " + name);
                 }
             } catch (InvalidNameException ine) {