[Pcsclite-cvs-commit] r2244 - trunk/PCSC/src

Ludovic Rousseau rousseau at alioth.debian.org
Thu Nov 30 17:26:26 CET 2006


Author: rousseau
Date: 2006-11-30 17:26:25 +0100 (Thu, 30 Nov 2006)
New Revision: 2244

Modified:
   trunk/PCSC/src/winscard.c
Log:
SCardControl(): do not limit cbSendLength to MAX_BUFFER_SIZE bytes since
we now transparently support up to MAX_BUFFER_SIZE_EXTENDED bytes.

Thanks to Martin F?\195?\188hrlinger for the bug report


Modified: trunk/PCSC/src/winscard.c
===================================================================
--- trunk/PCSC/src/winscard.c	2006-11-29 10:43:27 UTC (rev 2243)
+++ trunk/PCSC/src/winscard.c	2006-11-30 16:26:25 UTC (rev 2244)
@@ -1260,9 +1260,6 @@
 	if ((rv = RFCheckReaderEventState(rContext, hCard)) != SCARD_S_SUCCESS)
 		return rv;
 
-	if (cbSendLength > MAX_BUFFER_SIZE)
-		return SCARD_E_INSUFFICIENT_BUFFER;
-
 	if (IFD_HVERSION_2_0 == rContext->dwVersion)
 	{
 		/* we must wrap a API 3.0 client in an API 2.0 driver */




More information about the Pcsclite-cvs-commit mailing list