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

Ludovic Rousseau rousseau at alioth.debian.org
Tue Mar 6 18:26:31 CET 2007


Author: rousseau
Date: 2007-03-06 17:26:31 +0000 (Tue, 06 Mar 2007)
New Revision: 2467

Modified:
   trunk/PCSC/src/winscard_svc.c
Log:
CreateContextThread(): avoid a buffer overflow if no more context
available

thanks to Petr Gajdos for the patch


Modified: trunk/PCSC/src/winscard_svc.c
===================================================================
--- trunk/PCSC/src/winscard_svc.c	2007-03-06 10:41:29 UTC (rev 2466)
+++ trunk/PCSC/src/winscard_svc.c	2007-03-06 17:26:31 UTC (rev 2467)
@@ -90,8 +90,6 @@
 
 	if (i == PCSCLITE_MAX_APPLICATIONS_CONTEXTS)
 	{
-		SYS_CloseFile(psContext[i].dwClientID);
-		psContext[i].dwClientID = 0;
 		Log2(PCSC_LOG_CRITICAL, "No more context available (max: %d)",
 			PCSCLITE_MAX_APPLICATIONS_CONTEXTS);
 		return SCARD_F_INTERNAL_ERROR;




More information about the Pcsclite-cvs-commit mailing list