From fb9116a5546b0687bfa9231931242eb325d5f1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 29 Jan 2024 14:48:28 +0100 Subject: [PATCH] Select the application even if the call to SELECT returns a non-success error code --- src/dispatch.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dispatch.rs b/src/dispatch.rs index f982204..51e50c5 100644 --- a/src/dispatch.rs +++ b/src/dispatch.rs @@ -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 {