[Pcsclite-cvs-commit] r1721 - trunk/PCSC/src
Ludovic Rousseau
rousseau at costa.debian.org
Mon Nov 21 12:52:49 UTC 2005
Author: rousseau
Date: 2005-11-21 12:52:49 +0000 (Mon, 21 Nov 2005)
New Revision: 1721
Modified:
trunk/PCSC/src/readerfactory.c
Log:
RFAddReader(): initialize the pdwMutex field of a new reader.
The bug resulted in a crash on pcscd exit on Mac OS X
Modified: trunk/PCSC/src/readerfactory.c
===================================================================
--- trunk/PCSC/src/readerfactory.c 2005-11-21 10:32:31 UTC (rev 1720)
+++ trunk/PCSC/src/readerfactory.c 2005-11-21 12:52:49 UTC (rev 1721)
@@ -168,6 +168,7 @@
(sReadersContexts[dwContext])->dwLockId = 0;
(sReadersContexts[dwContext])->vHandle = 0;
(sReadersContexts[dwContext])->pdwFeeds = 0;
+ (sReadersContexts[dwContext])->pdwMutex = 0;
(sReadersContexts[dwContext])->dwIdentity =
(dwContext + 1) << (sizeof(DWORD) / 2) * 8;
(sReadersContexts[dwContext])->readerState = NULL;
More information about the Pcsclite-cvs-commit
mailing list