[Pcsclite-cvs-commit] r5214 - /trunk/PCSC/src/winscard.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Sep 2 09:27:52 UTC 2010
Author: rousseau
Date: Thu Sep 2 09:27:49 2010
New Revision: 5214
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5214
Log:
SCardStatus(): remove a useless test
lpcReader can't be larger than MAX_BUFFER_SIZE (264) since its buffer is
only MAX_READERNAME (100) bytes long.
And I don't see why we need this test anyway.
Modified:
trunk/PCSC/src/winscard.c
Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=5214&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Thu Sep 2 09:27:49 2010
@@ -1229,8 +1229,7 @@
if (rv != SCARD_S_SUCCESS)
return rv;
- if (strlen(rContext->lpcReader) > MAX_BUFFER_SIZE
- || rContext->readerState->cardAtrLength > MAX_ATR_SIZE)
+ if (rContext->readerState->cardAtrLength > MAX_ATR_SIZE)
return SCARD_F_INTERNAL_ERROR;
/*
More information about the Pcsclite-cvs-commit
mailing list