Fix off by 1 write.

This commit is contained in:
Viktor Dukhovni
2017-03-17 00:33:07 -04:00
committed by Viktor Dukhovni
parent 6b285e67e5
commit aad3b229ae

View File

@@ -1087,7 +1087,7 @@ C_GetMechanismList(CK_SLOT_ID slotID,
*pulCount = 1;
if (pMechanismList == NULL_PTR)
return CKR_OK;
pMechanismList[1] = CKM_RSA_PKCS;
pMechanismList[0] = CKM_RSA_PKCS;
return CKR_OK;
}