Copy the CLA value for the GET RESPONSE command from the original APDU

This commit is contained in:
Henryk Plötz 2010-02-25 10:48:58 +01:00
parent c125823192
commit 985941e16e
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class Card:
if self.check_sw(result.sw, PURPOSE_GET_RESPONSE):
## Need to call GetResponse
gr_apdu = C_APDU(self.APDU_GET_RESPONSE, le = result.sw2) # FIXME
gr_apdu = C_APDU(self.APDU_GET_RESPONSE, le = result.sw2, cla=apdu.cla) # FIXME
result = R_APDU(self._real_send(gr_apdu))
elif self.check_sw(result.sw, PURPOSE_RETRY) and apdu.Le == 0:
## Retry with correct Le