[Pcsclite-git-commit] [pcsc-tools] 01/03: pcsc_scan: recheck immediatly after a stress error

Ludovic Rousseau rousseau at moszumanska.debian.org
Sat May 13 15:30:22 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 a0abec85e6ab8f3d495ff7e6b8ea02270a32fedf
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Thu May 11 22:10:19 2017 +0200

    pcsc_scan: recheck immediatly after a stress error
    
    If the stress() function returns in error then we reset the reader state
    to SCARD_STATE_UNAWARE so that its state will be updated immediately.
---
 pcsc_scan.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pcsc_scan.c b/pcsc_scan.c
index 90ef7f6..4af49f9 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -576,6 +576,8 @@ get_readers:
 				{
 					rv = stress(hContext, rgReaderStates_t[current_reader].szReader);
 				} while (SCARD_S_SUCCESS == rv);
+
+				rgReaderStates_t[current_reader].dwCurrentState = SCARD_STATE_UNAWARE;
 			}
 		} /* for */
 

-- 
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