[Pcsclite-cvs-commit] r6385 - /trunk/PCSC/src/winscard_clnt.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sun Jul 1 19:12:33 UTC 2012


Author: rousseau
Date: Sun Jul  1 19:12:33 2012
New Revision: 6385

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6385
Log:
SCardBeginTransaction(): remove an extra line

The loop could be an infinite loop in case rv == SCARD_E_SHARING_VIOLATION
but we get out of the for (;;) loop exactly when rv !=
SCARD_E_SHARING_VIOLATION

The bug was introduced in revision 6358.

Modified:
    trunk/PCSC/src/winscard_clnt.c

Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=6385&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Sun Jul  1 19:12:33 2012
@@ -1200,7 +1200,6 @@
 		(void)pthread_mutex_unlock(currentContextMap->mMutex);
 		(void)SYS_USleep(PCSCLITE_LOCK_POLL_RATE);
 	}
-	while (SCARD_E_SHARING_VIOLATION == rv);
 
 	(void)pthread_mutex_unlock(currentContextMap->mMutex);
 




More information about the Pcsclite-cvs-commit mailing list