mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-16 04:17:55 +00:00
Fix ACL when creating new file.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
a94c74e508
commit
857aaf2679
1 changed files with 1 additions and 1 deletions
2
sc_hsm.c
2
sc_hsm.c
|
|
@ -1030,7 +1030,7 @@ int cmd_update_ef() {
|
|||
else if ((fid & 0xff00) != (EE_CERTIFICATE_PREFIX << 8))
|
||||
return SW_INCORRECT_P1P2();
|
||||
|
||||
if (!authenticate_action(ef, ACL_OP_UPDATE_ERASE))
|
||||
if (ef && !authenticate_action(ef, ACL_OP_UPDATE_ERASE))
|
||||
return SW_SECURITY_STATUS_NOT_SATISFIED();
|
||||
|
||||
while (p-apdu.cmd_apdu_data < apdu.cmd_apdu_data_len) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue