diff options
author | Stef Walter <stef@thewalter.net> | 2013-08-27 21:24:34 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-08-28 21:51:05 +0200 |
commit | 619e81b5ffe0677d1d511ef60b8451434c2a32a0 (patch) | |
tree | b26071e2be6be8cd897c853676a7004c8da9ae9f /trust/token.c | |
parent | 8a9a90e197d67c58898e959358b9a13482732d3d (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.c | 2 |
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); } |