We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dac83a commit 6b1afafCopy full SHA for 6b1afaf
totp/types/token_info.c
@@ -27,6 +27,8 @@ bool token_info_set_secret(
27
const char* base32_token_secret,
28
size_t token_secret_length,
29
const uint8_t* iv) {
30
+ if(token_secret_length == 0) return false;
31
+
32
uint8_t* plain_secret = malloc(token_secret_length);
33
furi_check(plain_secret != NULL);
34
int plain_secret_length =
0 commit comments