From e2170b295992cb7fdf115227a78028ac3780619f Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 18 Feb 2019 14:53:49 +0100 Subject: trust: Ignore unreadable content in anchors This amends eb503f3a1467f21a5ecc9ae84ae23b216afc102f. Instead of failing C_FindObjectsInit, treat any errors internally and accumulates the successfully loaded certificates. Reported by Andrej Kvasnica in: https://bugzilla.redhat.com/show_bug.cgi?id=1675441 --- trust/module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'trust/module.c') diff --git a/trust/module.c b/trust/module.c index 1722340..ec3333d 100644 --- a/trust/module.c +++ b/trust/module.c @@ -1198,8 +1198,7 @@ sys_C_FindObjectsInit (CK_SESSION_HANDLE handle, indices[n++] = session->index; if (want_token_objects) { if (!session->loaded) - if (p11_token_load (session->token) < 0) - rv = CKR_FUNCTION_FAILED; + p11_token_load (session->token); if (rv == CKR_OK) { session->loaded = CK_TRUE; indices[n++] = p11_token_index (session->token); -- cgit v1.1