aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2021-05-14 03:12:00 +0000
committerNIIBE Yutaka <[email protected]>2021-05-14 03:12:00 +0000
commitf2f96280065cb3676fbd4d168ee9b5f7c6daa898 (patch)
treec4995612fc0bc2f6b583c7f12f5ca52efc492a1c
parentscd: Remove wrong assertion and add protection to PCSC.COUNT. (diff)
downloadgnupg-f2f96280065cb3676fbd4d168ee9b5f7c6daa898.tar.gz
gnupg-f2f96280065cb3676fbd4d168ee9b5f7c6daa898.zip
scd: Change the exit condition of pcsc_thread.
* scd/apdu.c (pcsc_thread): Check PCSC.CONTEXT. Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--scd/apdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 027b5055f..6420b5a05 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -1102,7 +1102,7 @@ pcsc_thread (void *arg)
}
npth_mutex_lock (&reader_table_lock);
- while (pcsc.count)
+ while (pcsc.context)
{
int i, j = 0;
int any_change = 0;