[svn] GnuPG - r4909 - trunk/scd

svn author wk cvs at cvs.gnupg.org
Mon Jan 5 20:56:52 CET 2009


Author: wk
Date: 2009-01-05 20:56:52 +0100 (Mon, 05 Jan 2009)
New Revision: 4909

Modified:
   trunk/scd/ChangeLog
   trunk/scd/apdu.c
Log:
Fix card change detection.


Modified: trunk/scd/ChangeLog
===================================================================
--- trunk/scd/ChangeLog	2009-01-05 19:46:24 UTC (rev 4908)
+++ trunk/scd/ChangeLog	2009-01-05 19:56:52 UTC (rev 4909)
@@ -1,3 +1,7 @@
+2009-01-05  Werner Koch  <wk at g10code.com>
+
+	* apdu.c (apdu_get_status): Save the last status.
+
 2008-12-18  Werner Koch  <wk at g10code.com>
 
 	* ccid-driver.c (abort_cmd): New. 

Modified: trunk/scd/apdu.c
===================================================================
--- trunk/scd/apdu.c	2009-01-05 19:46:24 UTC (rev 4908)
+++ trunk/scd/apdu.c	2009-01-05 19:56:52 UTC (rev 4909)
@@ -2735,11 +2735,12 @@
       || !reader_table[slot].any_status )
     {
       reader_table[slot].change_counter++;
-      /* Make sure that the ATR is invalid so that a reset will be by
-         activate.  */
+      /* Make sure that the ATR is invalid so that a reset will be
+         triggered by activate.  */
       reader_table[slot].atrlen = 0;
     }
   reader_table[slot].any_status = 1;
+  reader_table[slot].last_status = s;
 
   if (status)
     *status = s;




More information about the Gnupg-commits mailing list