Skip to content

Commit

Permalink
Merge pull request #435 from LedgerHQ/xch/improve-os-perso-derive-emu…
Browse files Browse the repository at this point in the history
…lation

bolos/os_bip32.c: Improve syscall emulation
  • Loading branch information
xchapron-ledger authored Nov 16, 2023
2 parents 8241dc2 + 1509cfa commit 76bff66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bolos/os_bip32.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ unsigned long sys_os_perso_derive_node_with_seed_key(
const uint8_t *sk;
int ret;

if (path == NULL) {
THROW(EXCEPTION);
}

// In SDK2, some curves don't have the same value:
switch ((int)curve) {
case 0x71:
Expand Down

0 comments on commit 76bff66

Please sign in to comment.