mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Fix with extended APDU
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
9e5a8b0f0f
commit
af1280ca0b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue