Skip to content

Commit

Permalink
fix missing break and sw
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Jan 10, 2024
1 parent 3859c77 commit deef8d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions applets/admin/admin.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ static int admin_factory_reset(const CAPDU *capdu, RAPDU *rapdu) {
if (ret < 0) return ret;
ret = admin_install(1);
if (ret < 0) return ret;

SW = SW_NO_ERROR;
return 0;
}

Expand Down Expand Up @@ -256,6 +258,7 @@ int admin_process_apdu(const CAPDU *capdu, RAPDU *rapdu) {
break;
case ADMIN_INS_RESET_PASS:
ret = pass_install(1);
break;
case ADMIN_INS_RESET_CTAP:
ret = ctap_install(1);
break;
Expand Down

0 comments on commit deef8d7

Please sign in to comment.