summaryrefslogtreecommitdiff
path: root/trust/token.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-08-27 21:24:34 +0200
committerStef Walter <stef@thewalter.net>2013-08-28 21:51:05 +0200
commit619e81b5ffe0677d1d511ef60b8451434c2a32a0 (patch)
treeb26071e2be6be8cd897c853676a7004c8da9ae9f /trust/token.c
parent8a9a90e197d67c58898e959358b9a13482732d3d (diff)
trust: Correctly rewrite other objects in a modifiable persist file
There was a bug where we were rewriting the modified object multiple times.
Diffstat (limited to 'trust/token.c')
-rw-r--r--trust/token.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/token.c b/trust/token.c
index 22363f8..8670ff4 100644
--- a/trust/token.c
+++ b/trust/token.c
@@ -673,7 +673,7 @@ on_index_store (void *data,
for (i = 0; rv == CKR_OK && other && other[i] != 0; i++) {
if (other[i] != handle) {
- object = p11_index_lookup (index, handle);
+ object = p11_index_lookup (index, other[i]);
if (object != NULL)
rv = writer_put_object (file, persist, &buffer, object);
}