summaryrefslogtreecommitdiff
path: root/trust/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'trust/index.c')
-rw-r--r--trust/index.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trust/index.c b/trust/index.c
index 786d840..17370bc 100644
--- a/trust/index.c
+++ b/trust/index.c
@@ -412,7 +412,8 @@ p11_index_replace (p11_index *index,
CK_ATTRIBUTE *replace)
{
return_val_if_fail (index != NULL, CKR_GENERAL_ERROR);
- return index_replacev (index, match, key, &replace, 1);
+ return index_replacev (index, match, key, &replace,
+ replace ? 1 : 0);
}
CK_RV