Skip to content

Commit

Permalink
Fix for #51 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
akopachov authored Dec 30, 2022
1 parent 2dac83a commit 6b1afaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions totp/types/token_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ bool token_info_set_secret(
const char* base32_token_secret,
size_t token_secret_length,
const uint8_t* iv) {
if(token_secret_length == 0) return false;

uint8_t* plain_secret = malloc(token_secret_length);
furi_check(plain_secret != NULL);
int plain_secret_length =
Expand Down

0 comments on commit 6b1afaf

Please sign in to comment.