Skip to content

Commit

Permalink
Select the application even if the call to SELECT returns a non-succe…
Browse files Browse the repository at this point in the history
…ss error code
  • Loading branch information
sosthene-nitrokey committed Jan 29, 2024
1 parent a4b8541 commit fb9116a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,8 @@ impl<'pipe> ApduDispatch<'pipe> {
RawApduBuffer::Request(apdu) => app.select(interface, apdu, &mut response),
_ => panic!("Unexpected buffer state."),
};
if result.is_ok() {
self.current_aid = Some(aid);
}

self.current_aid = Some(aid);

self.handle_app_response(&result, &response);
} else {
Expand Down

0 comments on commit fb9116a

Please sign in to comment.