mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8283082: sun.security.x509.X509CertImpl.delete("x509.info.validity") nulls out info field
Reviewed-by: weijun
This commit is contained in:
parent
d9ca438d06
commit
31f7fc043b
2 changed files with 46 additions and 1 deletions
|
@ -739,7 +739,7 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
|
|||
id = attr.getPrefix();
|
||||
|
||||
if (id.equalsIgnoreCase(INFO)) {
|
||||
if (attr.getSuffix() != null) {
|
||||
if (attr.getSuffix() == null) {
|
||||
info = null;
|
||||
} else {
|
||||
info.delete(attr.getSuffix());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue