diff options
author | NIIBE Yutaka <[email protected]> | 2021-05-14 03:12:00 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2021-05-14 03:12:00 +0000 |
commit | f2f96280065cb3676fbd4d168ee9b5f7c6daa898 (patch) | |
tree | c4995612fc0bc2f6b583c7f12f5ca52efc492a1c | |
parent | scd: Remove wrong assertion and add protection to PCSC.COUNT. (diff) | |
download | gnupg-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.c | 2 |
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; |