summaryrefslogtreecommitdiff
path: root/trust/index.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-07-08 19:01:24 +0200
committerStef Walter <stef@thewalter.net>2013-07-08 20:35:04 +0200
commita314ab2aa9dbfcbc8d2d9a84554265e498520a20 (patch)
treecfcb4c5ffebfe1c462e9c7c9a4e6e563a81cb6ef /trust/index.c
parent3c36c7a68dfefdf75f7239dd7e006e7eb1366620 (diff)
downloadp11-kit-a314ab2aa9dbfcbc8d2d9a84554265e498520a20.tar.gz
trust: Fix bug with load validation failures
Diffstat (limited to 'trust/index.c')
-rw-r--r--trust/index.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/trust/index.c b/trust/index.c
index b84142f..5707714 100644
--- a/trust/index.c
+++ b/trust/index.c
@@ -645,10 +645,11 @@ index_replacev (p11_index *index,
for (j = 0; j < replacen; j++) {
if (!replace[j])
continue;
- rv = p11_index_take (index, replace[j], NULL);
+ attrs = replace[j];
+ replace[j] = NULL;
+ rv = p11_index_take (index, attrs, NULL);
if (rv != CKR_OK)
return rv;
- replace[j] = NULL;
}
return CKR_OK;