mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fix card change detection.
This commit is contained in:
parent
afb2e44850
commit
511c7a89fc
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-01-05 Werner Koch <wk@g10code.com>
|
||||
|
||||
* apdu.c (apdu_get_status): Save the last status.
|
||||
|
||||
2008-12-18 Werner Koch <wk@g10code.com>
|
||||
|
||||
* ccid-driver.c (abort_cmd): New.
|
||||
|
|
|
@ -2735,11 +2735,12 @@ apdu_get_status (int slot, int hang,
|
|||
|| !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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue