Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed UNKNOWN READ
  • Loading branch information
frankmorgner committed Nov 3, 2019
1 parent 6263afb commit c3f23b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libopensc/card-setcos.c
Expand Up @@ -868,7 +868,7 @@ static void parse_sec_attr_44(sc_file_t *file, const u8 *buf, size_t len)
}

/* Encryption key present ? */
iPinCount = iACLen - 1;
iPinCount = iACLen > 0 ? iACLen - 1 : 0;

if (buf[iOffset] & 0x20) {
int iSC;
Expand Down

0 comments on commit c3f23b8

Please sign in to comment.