From 511c7a89fca8bc9863df589ed700ff5d9543b47c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 5 Jan 2009 19:56:52 +0000 Subject: Fix card change detection. --- scd/apdu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scd/apdu.c') diff --git a/scd/apdu.c b/scd/apdu.c index e14f2b2ca..f92565d7d 100644 --- a/scd/apdu.c +++ b/scd/apdu.c @@ -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; -- cgit