[Pcsclite-cvs-commit] r4615 - /trunk/PCSC/src/atrhandler.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Dec 15 13:31:09 UTC 2009


Author: rousseau
Date: Tue Dec 15 13:31:09 2009
New Revision: 4615

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4615
Log:
ATRDecodeAtr(): check for TA2 (specific mode) even if TD2 is not present
"3F 80 10 01" was not parsed correctly for example and T=0 was used
instead of T=1 (specific mode)

Modified:
    trunk/PCSC/src/atrhandler.c

Modified: trunk/PCSC/src/atrhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/atrhandler.c?rev=4615&op=diff
==============================================================================
--- trunk/PCSC/src/atrhandler.c (original)
+++ trunk/PCSC/src/atrhandler.c Tue Dec 15 13:31:09 2009
@@ -176,6 +176,8 @@
 						 * supported at this time
 						 */
 					}
+		} else
+			Y1i = 0;
 
 			/* test presence of TA2 */
 			if ((2 == i) && (TAi >= 0))
@@ -202,8 +204,6 @@
 						return 0; /** @retval 0 Unable do decode T protocol */
 				}
 			}
-		} else
-			Y1i = 0;
 
 		if (p > MAX_ATR_SIZE)
 		{




More information about the Pcsclite-cvs-commit mailing list