mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Fix otp write length check.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
9de1b4ca5d
commit
ccec83dfb1
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ int cmd_extras() {
|
|||
else {
|
||||
apdu.nc -= 2;
|
||||
apdu.data += 2;
|
||||
if (!(apdu.nc % 2)) {
|
||||
if (apdu.nc % 2) {
|
||||
return SW_WRONG_DATA();
|
||||
}
|
||||
int ret = otp_write_data(row, apdu.data, apdu.nc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue