Skip to content

Commit

Permalink
Fix off by 1 write.
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Dukhovni authored and vdukhovni committed Mar 17, 2017
1 parent 6b285e6 commit aad3b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hx509/softp11.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit aad3b22

Please sign in to comment.