Fix off by 1 write.
authorViktor Dukhovni <viktor@twosigma.com>
Fri, 17 Mar 2017 04:33:07 +0000 (00:33 -0400)
committerViktor Dukhovni <viktor1ghub@dukhovni.org>
Fri, 17 Mar 2017 15:51:30 +0000 (11:51 -0400)
lib/hx509/softp11.c

index 839e956474b2f4ef398fbe1234f7871c60082443..f93863b7c980fa14f79422dd72a441d4c611859e 100644 (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;
 }