mirror of
https://github.com/status-im/status-keycard.git
synced 2025-01-12 14:54:54 +00:00
add missing 2 bytes when automatically adding length to NDEF
This commit is contained in:
parent
21e9f66798
commit
29346c0668
@ -468,6 +468,7 @@ public class KeycardApplet extends Applet {
|
||||
if (Util.makeShort(apduBuffer[ISO7816.OFFSET_CDATA], apduBuffer[(short)(ISO7816.OFFSET_CDATA + 1)]) != (short)(dataLen - 2)) {
|
||||
offset = ISO7816.OFFSET_P2;
|
||||
apduBuffer[ISO7816.OFFSET_P2] = 0;
|
||||
dataLen += 2;
|
||||
} else {
|
||||
offset = ISO7816.OFFSET_CDATA;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user