[Pcsclite-git-commit] [pcsc-tools] 26/32: pcsc_scan: do not stress a mute card
Ludovic Rousseau
rousseau at moszumanska.debian.org
Thu May 4 15:44:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository pcsc-tools.
commit 4b22815c90de290ae293f05b164997adf4c7bdc8
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Sat Apr 8 18:11:16 2017 +0200
pcsc_scan: do not stress a mute card
Do not try to communicate to a mute card.
---
pcsc_scan.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pcsc_scan.c b/pcsc_scan.c
index c1e8582..70d1c9f 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -558,8 +558,10 @@ get_readers:
}
}
- if (rgReaderStates_t[current_reader].dwEventState &
- SCARD_STATE_PRESENT && stress_card)
+ LONG state = rgReaderStates_t[current_reader].dwEventState;
+ if (state & SCARD_STATE_PRESENT
+ && !(state & SCARD_STATE_MUTE)
+ && stress_card)
{
do
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git
More information about the Pcsclite-cvs-commit
mailing list