[Pcsclite-cvs-commit] r6322 - /trunk/PCSC/src/winscard.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jun 5 09:17:51 UTC 2012


Author: rousseau
Date: Tue Jun  5 09:17:50 2012
New Revision: 6322

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6322
Log:
SCardEstablishContext(): Use a full 32-bits random value

Use a full int range (32-bits) value instead of a 16-bits value.

Note: this value is (still) not used/checked on the server side.

Modified:
    trunk/PCSC/src/winscard.c

Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=6322&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Tue Jun  5 09:17:50 2012
@@ -188,7 +188,7 @@
 	 * identified by clients and distinguished from others
 	 */
 
-	*phContext = (PCSCLITE_SVC_IDENTITY + SYS_RandomInt(1, 65535));
+	*phContext = SYS_RandomInt(0, -1);
 
 	Log2(PCSC_LOG_DEBUG, "Establishing Context: 0x%lX", *phContext);
 




More information about the Pcsclite-cvs-commit mailing list