[Pcsclite-git-commit] [CCID] 01/01: Fix timeout for PPDU commands

Ludovic Rousseau rousseau at moszumanska.debian.org
Mon Nov 9 16:23:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository CCID.

commit a26e6265ad4f8e86d1eea9cdd97dbfd2713194c5
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Mon Nov 9 17:21:10 2015 +0100

    Fix timeout for PPDU commands
    
    The timeout value is in milliseconds, not in seconds.
    
    Thanks to Roman Pasechnik for the bug report.
---
 src/ifdhandler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ifdhandler.c b/src/ifdhandler.c
index 35f3fcb..aef79db 100644
--- a/src/ifdhandler.c
+++ b/src/ifdhandler.c
@@ -1345,7 +1345,7 @@ EXTERNAL RESPONSECODE IFDHTransmitToICC(DWORD Lun, SCARD_IO_HEADER SendPci,
 		/* Yes, use the same timeout as for SCardControl() */
 		restore_timeout = TRUE;
 		old_read_timeout = ccid_descriptor -> readTimeout;
-		ccid_descriptor -> readTimeout = 90;	/* 90 seconds */
+		ccid_descriptor -> readTimeout = 90 * 1000;	/* 90 seconds */
 	}
 
 	rx_length = *RxLength;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/CCID.git



More information about the Pcsclite-cvs-commit mailing list