[Cryptech-Commits] [sw/pkcs11] 01/02: Doh, C_FindObjects() works better if we preserve its state across calls.

git at cryptech.is git at cryptech.is
Thu May 4 21:13:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch ksng
in repository sw/pkcs11.

commit f452e1e4767e2b0ad312ce62125a49e4f137a537
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu May 4 17:09:49 2017 -0400

    Doh, C_FindObjects() works better if we preserve its state across calls.
---
 pkcs11.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkcs11.c b/pkcs11.c
index 538654f..148a1a6 100644
--- a/pkcs11.c
+++ b/pkcs11.c
@@ -3391,7 +3391,6 @@ CK_RV C_FindObjects(CK_SESSION_HANDLE hSession,
 {
   ENTER_PUBLIC_FUNCTION(C_FindObjects);
 
-  hal_uuid_t previous_uuid = {{0}};
   p11_session_t *session;
   CK_RV rv = CKR_OK;
 
@@ -3431,7 +3430,7 @@ CK_RV C_FindObjects(CK_SESSION_HANDLE hSession,
                                                session->find_query, session->find_query_n,
                                                &session->find_query_state,
                                                uuids, &n, sizeof(uuids)/sizeof(*uuids),
-                                               &previous_uuid));
+                                               &session->find_query_previous_uuid));
       if (rv != CKR_OK)
         goto fail;
 



More information about the Commits mailing list