mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-11 04:48:15 +02:00
Fix byte overwrite for long chained RAPDU.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -260,8 +260,8 @@ int driver_process_usb_packet_emul(uint8_t itf, uint16_t len) {
|
|||||||
DEBUG_PAYLOAD(data, len);
|
DEBUG_PAYLOAD(data, len);
|
||||||
if ((sent = apdu_process(itf, data, len)) > 0) {
|
if ((sent = apdu_process(itf, data, len)) > 0) {
|
||||||
process_apdu();
|
process_apdu();
|
||||||
|
apdu_finish();
|
||||||
}
|
}
|
||||||
apdu_finish();
|
|
||||||
if (sent > 0) {
|
if (sent > 0) {
|
||||||
uint16_t ret = apdu_next();
|
uint16_t ret = apdu_next();
|
||||||
DEBUG_PAYLOAD(apdu.rdata, ret);
|
DEBUG_PAYLOAD(apdu.rdata, ret);
|
||||||
|
|||||||
Reference in New Issue
Block a user