[Pcsclite-cvs-commit] r4769 - /trunk/PCSC/src/winscard_clnt.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Feb 23 16:07:32 UTC 2010
Author: rousseau
Date: Tue Feb 23 16:07:27 2010
New Revision: 4769
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4769
Log:
SCardEstablishContextTH() & SCardGetStatusChange(): completly initialize
structures sent to the daemon to avoid a valgrind warning:
Syscall param socketcall.send(msg) points to uninitialised byte(s)
Modified:
trunk/PCSC/src/winscard_clnt.c
Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=4769&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Tue Feb 23 16:07:27 2010
@@ -549,6 +549,7 @@
veStr.major = PROTOCOL_VERSION_MAJOR;
veStr.minor = PROTOCOL_VERSION_MINOR;
+ veStr.rv = SCARD_S_SUCCESS;
if (-1 == SHMMessageSendWithHeader(CMD_VERSION, dwClientID, sizeof(veStr),
PCSCLITE_WRITE_TIMEOUT, &veStr))
@@ -2205,6 +2206,7 @@
gettimeofday(&before, NULL);
waitStatusStruct.timeOut = dwTime;
+ waitStatusStruct.rv = SCARD_S_SUCCESS;
rv = SHMMessageSendWithHeader(CMD_WAIT_READER_STATE_CHANGE,
currentContextMap->dwClientID,
More information about the Pcsclite-cvs-commit
mailing list