mirror of
https://github.com/trussed-dev/apdu-dispatch.git
synced 2026-06-20 04:16:15 -07:00
Select the application even if the call to SELECT returns a non-success error code
This commit is contained in:
+2
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user