--- a/src/java.base/share/classes/sun/security/validator/Validator.java Tue Dec 11 11:01:02 2018 -0500
+++ b/src/java.base/share/classes/sun/security/validator/Validator.java Tue Dec 11 13:22:20 2018 -0500
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -275,7 +275,8 @@
boolean checkUnresolvedCritExts =
(type == TYPE_PKIX) ? false : true;
endEntityChecker.check(chain[0], parameter,
- checkUnresolvedCritExts);
+ checkUnresolvedCritExts,
+ chain[chain.length-1]);
}
return chain;