Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Oct 27, 2022
1 parent a12689e commit 0918d87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ void handleApdu(volatile unsigned int *flags, volatile unsigned int *tx, int rx)

const int ret = apdu_handle_message(G_io_apdu_buffer, rx, &G_command);
if (ret != 0) {
MEMCLEAR(G_command);
THROW(ret);
}

if (G_command.state == ApduStatePayloadInProgress) {
THROW(ApduReplySuccess);
}
Expand Down
4 changes: 2 additions & 2 deletions src/signMessage.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ void handle_sign_message_parse_message(volatile unsigned int *tx) {

if ((G_command.non_confirm || G_called_from_swap) &&
!(G_command.non_confirm && G_called_from_swap)) {
// Blind sign requested NOT in swap context
// Or no blind sign requested while in swap context
// User validation bypass requested NOT in swap context
// Or user validation requested while in swap context
THROW(ApduReplySdkNotSupported);
}

Expand Down

0 comments on commit 0918d87

Please sign in to comment.