Add room for SW1-SW2 in case of maximum reply size (256 bytes)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1604 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
43c4fe5ff5
commit
3b746f0b5e
|
@ -194,8 +194,8 @@ static int pcsc_transmit(struct sc_reader *reader, struct sc_slot_info *slot,
|
|||
dwSendLength = sendsize;
|
||||
dwRecvLength = *recvsize;
|
||||
|
||||
if (dwRecvLength > 256)
|
||||
dwRecvLength = 256;
|
||||
if (dwRecvLength > 258)
|
||||
dwRecvLength = 258;
|
||||
|
||||
if (!control) {
|
||||
rv = SCardTransmit(card, &sSendPci, sendbuf, dwSendLength,
|
||||
|
|
Loading…
Reference in New Issue