mirror of
https://github.com/trezor/trezor-firmware.git
synced 2026-02-20 00:33:30 +01:00
fixup! feat(rust/trezor-thp): secure channel layer: device side
This commit is contained in:
@@ -434,7 +434,9 @@ where
|
||||
if res.got_message() {
|
||||
let handled = self.incoming_internal();
|
||||
if let Err(e) = handled {
|
||||
if e != Error::InvalidChecksum {
|
||||
if e == Error::InvalidChecksum {
|
||||
return PacketInResult::ignore(e);
|
||||
} else {
|
||||
self.state = HandshakeState::Failed;
|
||||
return PacketInResult::fail(e);
|
||||
}
|
||||
|
||||
@@ -481,7 +481,9 @@ where
|
||||
if res.got_message() {
|
||||
let handled = self.incoming_internal();
|
||||
if let Err(e) = handled {
|
||||
if e != Error::InvalidChecksum {
|
||||
if e == Error::InvalidChecksum {
|
||||
return PacketInResult::ignore(e);
|
||||
} else {
|
||||
self.state = HandshakeState::Failed;
|
||||
return PacketInResult::fail(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user