[Pcsclite-cvs-commit] Drivers/ccid/src/openct proto-t1.c,1.8,1.9
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/Drivers/ccid/src/openct
In directory haydn:/tmp/cvs-serv17800/openct
Modified Files:
proto-t1.c
Log Message:
in resync: we set retries = 1 since when we return in the loop we have
retries--;
Without this retries goes negative and the test 'if (retries == 0)' will
not become true again before a looooong time.
Index: proto-t1.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/openct/proto-t1.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- proto-t1.c 15 Jul 2004 09:31:04 -0000 1.8
+++ proto-t1.c 19 Jul 2004 09:36:09 -0000 1.9
@@ -485,6 +485,7 @@
NULL);
t1->state = RESYNCH;
t1->more = FALSE;
+ retries = 1;
continue;
}