From 8ddd21cad4109c44a388acaab72507b8f54e4c35 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 6 May 2007 14:27:39 +0000 Subject: Fix problem with objects going away due to duplicates. --- ckcapi-cert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ckcapi-cert.c') diff --git a/ckcapi-cert.c b/ckcapi-cert.c index 501f2a2..064c5f5 100644 --- a/ckcapi-cert.c +++ b/ckcapi-cert.c @@ -538,7 +538,7 @@ find_in_store(CkCapiSession* sess, const char* store_name, CertFreeCertificateContext((PCCERT_CONTEXT)objdata.data); } - ckcapi_array_append(arr, obj); + ckcapi_array_append(arr, obj->id); } } @@ -597,7 +597,7 @@ match_in_store(CkCapiSession* sess, const char* store_name, PCERT_INFO info, /* Store away the object data for performance reasons */ ret = ckcapi_session_set_object_data(sess, obj, &objdata); if(ret == CKR_OK) - ckcapi_array_append(arr, obj); + ckcapi_array_append(arr, obj->id); } } -- cgit v1.2.3