Skip to content

Commit 58d30ac

Browse files
author
Akira Shimosoeda
committed
Initialize ulValueLen to zero in __getitem__
This commit fixes #70
1 parent 46ed66a commit 58d30ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkcs11/_pkcs11.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ class Object(types.Object):
618618
cdef CK_ATTRIBUTE template
619619
template.type = key
620620
template.pValue = NULL
621+
template.ulValueLen = <CK_ULONG> 0
621622

622623
# Find out the attribute size
623624
assertRV(_funclist.C_GetAttributeValue(self.session._handle, self._handle,

0 commit comments

Comments
 (0)