Skip to content

Commit

Permalink
Consider failure to select admin app to not be an nk3
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Nov 20, 2024
1 parent 4d87115 commit d640aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations_ccid.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ int status_ccid(libusb_device_handle *handle, struct ResponseStatus *response) {
bool pin_counter_is_error = false;

int r = send_select_nk3_admin_ccid(handle, buf, sizeof buf, &iccResult);
if (r != RET_NO_ERROR) {
if (r != RET_NO_ERROR || iccResult.data_status_code != 0x9000) {
response->is_nk3 = false;
printf("Not an NK3\n");
} else {
Expand Down

0 comments on commit d640aa0

Please sign in to comment.