emrtd: Fix bug with certain file reads

This commit is contained in:
Ave but on a massive iMac 2021-04-26 11:04:33 +03:00
parent c1339a4473
commit 20ca241816

View file

@ -262,7 +262,7 @@ static int emrtd_get_asn1_data_length(uint8_t *datain, int datainlen, int offset
// https://wf.lavatech.top/ave-but-random/emrtd-data-quirks#EF_SOD
return datainlen;
} else if (lenfield == 0x81) {
int tmp = (*(datain + offset + 1) << 8);
int tmp = (*(datain + offset + 1));
return tmp;
//return ((int) * (datain + offset + 1));
} else if (lenfield == 0x82) {