Skip to content

Commit eb8ddfb

Browse files
committed
Fix valgrind report about test_wrap_unwrap_key not setting mech.
1 parent 15e3420 commit eb8ddfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/pkcs11test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2647,6 +2647,7 @@ static CK_RV test_wrap_unwrap_key(void* args)
26472647

26482648
memset(wrappingKeyData, 9, sizeof(wrappingKeyData));
26492649
memset(keyData, 7, sizeof(keyData));
2650+
memset(&mech, 0, sizeof(mech));
26502651
wrappedKeyLen = sizeof(wrappedKey);
26512652

26522653
ret = get_generic_key(session, wrappingKeyData, sizeof(wrappingKeyData),

0 commit comments

Comments
 (0)