aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-05-04 17:09:49 -0400
committerRob Austein <sra@hactrn.net>2017-05-04 17:09:49 -0400
commitf452e1e4767e2b0ad312ce62125a49e4f137a537 (patch)
tree09653be60e4b2c27e98c77fee6ea8f6603895a35
parent0cc1b0a7b5605d86d8a8639651987e25fdb3bdc9 (diff)
Doh, C_FindObjects() works better if we preserve its state across calls.
-rw-r--r--pkcs11.c3
1 files changed, 1 insertions, 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;