Select the application even if the call to SELECT returns a non-success error code

This commit is contained in:
Sosthène Guédon
2024-01-29 14:49:50 +01:00
parent a4b85418be
commit fb9116a554
+2 -3
View File
@@ -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 {