[Pcsclite-git-commit] [PCSC] 01/03: Revert "SCardDisconnect(): fix ATR update for SCARD_UNPOWER_CARD"
Ludovic Rousseau
rousseau at moszumanska.debian.org
Sat May 13 19:44:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository PCSC.
commit 6cba8a28c66b836244d920ebe0b9010b2302fc93
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Sat May 13 21:20:05 2017 +0200
Revert "SCardDisconnect(): fix ATR update for SCARD_UNPOWER_CARD"
This reverts commit 70468bfaa08eae5715312de43aecb873a2df115f.
---
src/winscard.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/winscard.c b/src/winscard.c
index 44821ea..06bc377 100644
--- a/src/winscard.c
+++ b/src/winscard.c
@@ -883,9 +883,6 @@ LONG SCardDisconnect(SCARDHANDLE hCard, DWORD dwDisposition)
{
DWORD dwAtrLen;
- /* invalidate ATR */
- rContext->readerState->cardAtrLength = 0;
-
/*
* Notify the card has been reset
*/
@@ -940,6 +937,7 @@ LONG SCardDisconnect(SCARDHANDLE hCard, DWORD dwDisposition)
}
else
{
+ rContext->readerState->cardAtrLength = 0;
Log1(PCSC_LOG_ERROR, "Error resetting card.");
if (rv == SCARD_W_REMOVED_CARD)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git
More information about the Pcsclite-cvs-commit
mailing list