Skip to content

Commit

Permalink
Set default value
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Aug 29, 2024
1 parent 97f04cb commit 62dd974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/password-hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pbkdf2_sha256_derive_key (const char *data_in, int in_len,
{
int iteration = params->iteration;

unsigned char salt_bin[32];
unsigned char salt_bin[32] = {0};
hex_to_rawdata (salt, salt_bin, 32);

PKCS5_PBKDF2_HMAC (data_in, in_len,
Expand Down

0 comments on commit 62dd974

Please sign in to comment.