提交 74e9320e 编写于 作者: A ascarpino

8009438: sun/security/pkcs11/Secmod tests failing on Ubuntu 12.04

Reviewed-by: vinnie
上级 da0b9f3e
......@@ -756,8 +756,12 @@ public final class Secmod {
if (DEBUG) System.out.println("handles: " + handles.length);
for (long handle : handles) {
TrustAttributes trust = new TrustAttributes(token, session, handle);
trustMap.put(trust.getHash(), trust);
try {
TrustAttributes trust = new TrustAttributes(token, session, handle);
trustMap.put(trust.getHash(), trust);
} catch (PKCS11Exception e) {
// skip put on pkcs11 error
}
}
} finally {
token.releaseSession(session);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册