Skip to content

Commit

Permalink
iter: Fix recursive attribute loading
Browse files Browse the repository at this point in the history
Fixes: #641
Signed-off-by: Jan Alexander Steffens (heftig) <[email protected]>
  • Loading branch information
heftig committed Jul 2, 2024
1 parent d9449ee commit ce2e516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p11-kit/iter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ prepare_recursive_attribute (P11KitIter *iter,
templ[i].pValue = malloc (templ[i].ulValueLen);
return_val_if_fail (templ[i].pValue != NULL, CKR_HOST_MEMORY);

if (IS_ATTRIBUTE_ARRAY (attr)) {
if (IS_ATTRIBUTE_ARRAY (templ + i)) {
rv = prepare_recursive_attribute (iter, attr, templ[i].pValue,
templ[i].ulValueLen);
return_val_if_fail (rv == CKR_OK, rv);
Expand Down

0 comments on commit ce2e516

Please sign in to comment.