Fix with extended APDU

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-02-03 15:35:09 +01:00
parent 9e5a8b0f0f
commit af1280ca0b
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -1139,7 +1139,7 @@ static int end_cmd_apdu_data (struct ep_out *epo, size_t orig_len)
len -= 2;
if (len < c->a->cmd_apdu_data_len)
goto error;
c->a->cmd_apdu_data += 3;
c->a->cmd_apdu_data += 2;
if (len == c->a->cmd_apdu_data_len) //no LE
c->a->expected_res_size = 0;
else {