Ticket #163 (new defect)
bug in iso7816.c select_file()
| Reported by: | mrp | Owned by: | opensc-devel@… |
|---|---|---|---|
| Priority: | high | Milestone: | 0.11.5 |
| Component: | opensc | Version: | 0.11.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
iso7816.c select_file() fails when called as
select_fail(card,&path,NULL)
if path.type=SC_PATH_TYPE_PARENT
The error is at the line 452 (the version I am using is the stable 0.11.4)
apdu.cse = SC_APDU_CASE_3_SHORT;
changing it to
apdu.cse = pathlen ? SC_APDU_CASE_3_SHORT : SC_APDU_CASE_1;
seems to fix the problem.
Change History
Note: See
TracTickets for help on using
tickets.
