summaryrefslogtreecommitdiff
path: root/trust/index.c
diff options
context:
space:
mode:
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;