Revision: 115 http://trac.macosforge.org/projects/smartcardservices/changeset/115 Author: ludovic.rousseau@gmail.com Date: 2010-02-26 08:06:43 -0800 (Fri, 26 Feb 2010) Log Message: ----------- GemaltoToken::probe(): use the correct slot ID instead of an uninitialized value Modified Paths: -------------- trunk/Tokend/PKCS11/GemaltoToken.cpp Modified: trunk/Tokend/PKCS11/GemaltoToken.cpp =================================================================== --- trunk/Tokend/PKCS11/GemaltoToken.cpp 2010-02-24 08:15:10 UTC (rev 114) +++ trunk/Tokend/PKCS11/GemaltoToken.cpp 2010-02-26 16:06:43 UTC (rev 115) @@ -373,7 +373,7 @@ /* check that the PKCS#11 slot is using the reader selected by the tokend */ if (strncmp((char*) slotInfo.slotDescription, readerState.szReader, strlen(readerState.szReader)) == 0) { - rv = CK_D_(C_GetTokenInfo)(mCKSlotId, &mCKTokenInfo); + rv = CK_D_(C_GetTokenInfo)(pSlotID[i], &mCKTokenInfo); if (rv != CKR_OK) { PKCS11_FAILED("C_GetTokenInfo", rv);