Skip to content

Commit

Permalink
Merge branch 'develop' into add_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarczyck committed Mar 28, 2022
2 parents f862d4c + 8331aa1 commit 990c2b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ctap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ impl StatefulPermission {
// However, interleaving (stateless) commands could delete credentials or change the PIN,
// which chould make invalidate our access. Some read-only commands should be okay to run,
// but (A) is the safest and easiest solution.
if let Some(c) = self.channel.as_ref() {
if let Some(c) = &self.channel {
if c != channel {
self.clear();
}
Expand Down Expand Up @@ -556,6 +556,8 @@ impl CtapState {
| (Command::AuthenticatorGetInfo, Ok(StatefulCommand::Reset))
// AuthenticatorSelection still allows Reset.
| (Command::AuthenticatorSelection, Ok(StatefulCommand::Reset))
// AuthenticatorMakeCredential is used like AuthenticatorSelection in 2.0.
| (Command::AuthenticatorMakeCredential(_), Ok(StatefulCommand::Reset))
// AuthenticatorCredentialManagement handles its subcommands later.
| (
Command::AuthenticatorCredentialManagement(_),
Expand Down

0 comments on commit 990c2b3

Please sign in to comment.