summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object.c b/src/object.c
index c8acd77..1b9427a 100644
--- a/src/object.c
+++ b/src/object.c
@@ -146,7 +146,7 @@ test_get_attribute_value(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object)
rv = (p11t_module_funcs->C_GetAttributeValue)(session, (CK_OBJECT_HANDLE)-58, attrs, 1);
P11T_CHECK_RV("Invalid object", rv, CKR_OBJECT_HANDLE_INVALID);
- rv = (p11t_module_funcs->C_GetAttributeValue)(session, object, NULL, 0);
+ rv = (p11t_module_funcs->C_GetAttributeValue)(session, object, NULL, 1);
P11T_CHECK_RV("No template", rv, CKR_ARGUMENTS_BAD);
attrs[0].pValue = buffer;
@@ -262,7 +262,7 @@ test_get_attribute_value(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object)
P11T_CHECK_BOOL("CKA_TOKEN boolean value", *((CK_BBOOL*)attrs[1].pValue));
P11T_CHECK_BOOL("CKA_PRIVATE boolean value", *((CK_BBOOL*)attrs[2].pValue));
P11T_CHECK_BOOL("CKA_MODIFIABLE boolean value", *((CK_BBOOL*)attrs[3].pValue));
- P11T_CHECK_STRING("CKA_LABEL boolean value", attrs[4].pValue, attrs[4].ulValueLen);
+ P11T_CHECK_STRING("CKA_LABEL value", attrs[4].pValue, attrs[4].ulValueLen);
return CONTINUE;
}