From bce08aa43a6fc70d24ce08f54915ca53ce08d2c4 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 7 Apr 2012 15:12:30 +0200 Subject: Fix use of undefined value --- src/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/object.c b/src/object.c index 4252bbc..d2b99d1 100644 --- a/src/object.c +++ b/src/object.c @@ -238,7 +238,7 @@ test_get_attribute_value(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object) attrs[0].type = CKA_INVALID; attrs[1].type = CKA_CLASS; attrs[0].ulValueLen = attrs[1].ulValueLen = 0; - attrs[0].pValue = attrs[0].pValue = NULL; + attrs[0].pValue = attrs[1].pValue = NULL; rv = (p11t_module_funcs->C_GetAttributeValue)(session, object, attrs, 2); P11T_CHECK_RV("With one invalid attribute, no buffer", rv, CKR_ATTRIBUTE_TYPE_INVALID); -- cgit v1.2.3