From a314ab2aa9dbfcbc8d2d9a84554265e498520a20 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 8 Jul 2013 19:01:24 +0200 Subject: trust: Fix bug with load validation failures --- trust/index.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'trust/index.c') 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; -- cgit v1.1