[Pcsclite-cvs-commit] CVS Drivers/ccid/src

CVS User rousseau ludovic.rousseau@free.fr
Mon, 02 May 2005 11:33:04 +0000


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv11305

Modified Files:
	ccid_serial.c 
Log Message:
ReadSerial(): if we get a NAK we return STATUS_COMM_NAK to the above
layer to replay the command instead of just restarting the read


--- /cvsroot/pcsclite/Drivers/ccid/src/ccid_serial.c	2005/05/02 09:17:53	1.40
+++ /cvsroot/pcsclite/Drivers/ccid/src/ccid_serial.c	2005/05/02 11:33:04	1.41
@@ -20,7 +20,7 @@
  */
 
 /*
- * $Id: ccid_serial.c,v 1.40 2005/05/02 09:17:53 rousseau Exp $
+ * $Id: ccid_serial.c,v 1.41 2005/05/02 11:33:04 rousseau Exp $
  */
 
 #include <stdio.h>
@@ -322,7 +322,10 @@
 		return STATUS_COMM_ERROR;
 	}
 	else
-		goto start;
+	{
+		DEBUG_COMM("NAK requested");
+		return STATUS_COMM_NAK;
+	}
 
 ack:
 	DEBUG_COMM("ack");