summaryrefslogtreecommitdiff
path: root/ckcapi-cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'ckcapi-cert.c')
-rw-r--r--ckcapi-cert.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}