Skip to content

Commit fb623f1

Browse files
committed
8279066: entries.remove(entry) is useless in PKCS12KeyStore
Reviewed-by: mullan
1 parent 803cb8a commit fb623f1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/java.base/share/classes/sun/security/pkcs12/PKCS12KeyStore.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,11 +2265,6 @@ public synchronized void engineLoad(InputStream stream, char[] password)
22652265
/* Update existing KeyEntry in entries table */
22662266
if (chain.size() > 0) {
22672267
entry.chain = chain.toArray(new Certificate[chain.size()]);
2268-
} else {
2269-
// Remove private key entries where there is no associated
2270-
// certs. Most likely the keystore is loaded with a null
2271-
// password.
2272-
entries.remove(entry);
22732268
}
22742269
}
22752270
}

0 commit comments

Comments
 (0)